I have the following code:
[php]
$upload_dir = ‘…/media/flyer/’;
function bytesToSize1024($bytes, $precision = 2) {
$unit = array(‘B’,‘KB’,‘MB’);
return @round($bytes / pow(1024, ($i = floor(log($bytes, 1024)))), $precision).’ '.$unit[$i];
}
$sFileName = $_FILES[‘image_file’][‘name’];
$sFileType = $_FILES[‘image_file’][‘type’];
$sFileSize = bytesToSize1024($_FILES[‘image_file’][‘size’], 1);
echo <<<EOF
Your file: {$sFileName} has been successfully received.
Type: {$sFileType}
Size: {$sFileSize}
EOF;//NO ERROR BUT NO TMP FILE MOVE
move_uploaded_file($sFileName[‘tmp_name’], $upload_dir.$sFileName[‘name’]);
[/php]
The issue is that the php###.tmp file is created in C:\Windows\Temp but never moved to the Destination Folder. I checked my PHPLog on the Server and there are no error and the page even displays that the file was received successfully.
FYI:
[ul][li]I own and manage the Server.[/li]
[li]It is a Test Environment.[/li]
[li]The Destination has "Everyone"with Full Control (For Testing)[/li][/ul]
What am I missing?
Thanks in advance.
Joe