Re: PHP and files Upload
| From: | Mark Rees | Date: | Wed, 19 Oct 2005 13:07:34 +0000 |
| Subject: | Re: PHP and files Upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224324@lists.php.net to get a copy of this message | ||
> 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