Hi,
I'm using the following code(just a snippet of a larger script) to upload files to my server.
However, when I log in to the FTP, I can't download the files that have been uploaded.PHP Code:$uniq = gmdate( 'dmYHis' ) . '_' . md5_file( $_FILES['file']['tmp_name'] ) . $ext;
if ( move_uploaded_file( $_FILES['file']['tmp_name'], realpath( '../wdocs' ) . '/' . $uniq ) ) {
$ipdf = $uniq;
} else {
$ipdf = $row['cvfile'];
}
Is there a way to set the file permissions to CHMOD 777 on upload?
Many thanks






Bookmarks