Problem with file upload!
Posted: Fri Dec 26, 2003 1:02 pm
When I fill out the form, that should upload a file into server and hit submit, no file appears to the server's temp directory... but the script still echos the temporary file (with the dir) name.
Example:
I choose a file named 'somewhile.jpg'.
Hit submit, and echo $HTTP_POST_FILES['fail']['tmp_name'];
This will output, for example "C:\uploaddir\php5A.tmp" or something...
But there's no files in the dir C:\uploaddir\ and PHP fails to copy the file to destination dir.
I thought there was no purpose to write here the php code, because it all worked on Linux. :S
I am running Apache 1.3
with PHP 4.2.2.
Example:
I choose a file named 'somewhile.jpg'.
Hit submit, and echo $HTTP_POST_FILES['fail']['tmp_name'];
This will output, for example "C:\uploaddir\php5A.tmp" or something...
But there's no files in the dir C:\uploaddir\ and PHP fails to copy the file to destination dir.
I thought there was no purpose to write here the php code, because it all worked on Linux. :S
I am running Apache 1.3
with PHP 4.2.2.