PDA

View Full Version : Upload Error [function.move]


brian connolly
12-13-2006, 06:34 PM
Getting the error below. It's new. Was working fine a week ago. /images and /thumbnails directories chmod 777. More than enough room on the server.

Thoughts?

ERROR

Warning: move_uploaded_file(/home/gyirurry/public_html/creative/images/20061213142201_cheryl.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/strumpet/public_html/creative/admin/new_image.php on line 185

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpGxMQrb' to '/home/gyirurry/public_html/creative/images/20061213142201_cheryl.jpg' in /home/strumpet/public_html/creative/admin/new_image.php on line 185

CODE

if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
chmod($uploadfile, 0644);
$result = check_upload($_FILES['userfile']['error']);
$filnamn =strtolower($_FILES['userfile']['name']);
$filnamn = $time_stamp_r .$filnamn;
$filtyp = $_FILES['userfile']['type'];
$filstorlek = $_FILES['userfile']['size'];
$status = "ok";
if($postdatefromexif == TRUE) {
$exif_result = read_exif_data_raw($uploadfile,"0");
$exposuredatetime = $exif_result['SubIFD']['DateTimeOriginal'];
if ($exposuredatetime!=''){
list($exifyear,$exifmonth,$exifday,$exifhour,$exif min, $exifsec) = split('[: ]', $exposuredatetime);
$datetime = date("Y-m-d H:i:s", mktime($exifhour, $exifmin, $exifsec, $exifmonth, $exifday, $exifyear));
}else $datetime = gmdate("Y-m-d H:i:s",time()+(3600 * $tz));
}

brian connolly
12-13-2006, 06:40 PM
God I hate when I am dumb.

Upload directory misconfigured in admin.

Sorry.

Thanks.