PHP File Upload Issue on WAMP
Posted by: discobear (---.brnt.adsl.virgin.net)
Date: April 09, 2008 08:29PM

if(is_uploaded_file($_FILES["str_file"]["tmp_name"])){
$str_file=$_FILES["str_file"]["name"];
move_uploaded_file($_FILES["str_file"]["tmp_name"],"../../uploads/mp3s/".$_FILES["str_file"]["name"]);
$str_real_path = realpath("../../uploads/mp3s/".$_FILES["str_file"]["name"]);
}


the destination directory exists and i have full write permissions but the file doesnt move to the relevant directory. a temp file exists as i can print the value. in addition the filesize is less than the max upload size.
the site is not within c://wamp/www as i use virtual host to map to my directories. i know the script work as it uploads the file to the desired destination (identical paths on both sites) when i run it on my live server this has led me believe it is a php setting issue on my wamp.
can anyone please shed some light on a possible solution to this?

Options: ReplyQuote
Re: PHP File Upload Issue on WAMP
Posted by: hambuler (---.cpe.net.cable.rogers.com)
Date: April 09, 2008 08:41PM

Tough luck. Get some light at: [forum.wampserver.com]

Options: ReplyQuote
Re: PHP File Upload Issue on WAMP
Posted by: discobear (---.brnt.adsl.virgin.net)
Date: April 09, 2008 09:03PM

thanks but no light there.

Options: ReplyQuote
Re: PHP File Upload Issue on WAMP
Posted by: discobear (---.brnt.adsl.virgin.net)
Date: April 09, 2008 09:52PM

it works when i substitue ../../uploads/mp3s/ for C:/Jobs/20080101_JobA/uploads/mp3s/

must be a configuration isse of some sort. anyway not a problem just annoying.

Options: ReplyQuote


Sorry, only registered users may post in this forum.