| 
 Posted by "Mark Rees" on 10/19/05 16:07 
> the script always says it was sucessful to upload the file, but the 
destination 
> directory was always empty... 
> even when checking the $_FILES global 
> 
> $_FILES['var_name']['tmp_name'] and 
> $_FILES['var_name']['name'] and 
> $_FILES['var_name']['size'], the vars alwyas return empty values... 
> 
> is there any issue with php5 about files uploads ? 
 
I have it working on Windows, Apache, PHP5 
 
A few checks you could make: 
 
Are you sure that var_name is the name of the file upload field in your 
form? 
Have you set the form enctype to "multipart/form-data"? 
Have you set the maxfilesize attribute, and does the file you are trying to 
upload exceed that size? 
 
Good luck 
 
Mark
 
[Back to original message] 
 |