Re: File upload
| From: | Michael M�ller | Date: | Fri, 25 Jul 2003 12:28:13 +0000 |
| Subject: | Re: File upload | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156827@lists.php.net to get a copy of this message | ||
i think ['name'] isn't empty, it contains the real name whereas tmp_name
contains the full path to the temp_file on the server
maybe you should try $HTTP_POST_FILES?
"Jonas Thorell" <jonasth@bahnhof.se> schrieb im Newsbeitrag
news:000201c3529f$13f90370$2432010a@holly...
> >The upload_single.php script is just this:
> ><?php
> > $ime = $_FILES["thefile"]["name"];
> > print ($ime);
> >?>
>
> >I just want for begining to print the name of file.
>
> >But It doesn't work.
>
> Do you get anything if you change "name" to
> "tmp_name" to beging with? If I'm not mistaken
> ,"name" isn't filled in with anything unless
> You've used move_uploaded_file() first.
>
> Also check if uploads are enabled in php.ini.
> Oh, and if you have permissions to write in
> The tmp directory as well.
>
> /Jonas
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.501 / Virus Database: 299 - Release Date: 2003-07-14
>
>