Re: file uploads
| From: | Jon Rosenberg | Date: | Tue, 05 Dec 2000 20:40:32 +0000 |
| Subject: | Re: file uploads | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28748@lists.php.net to get a copy of this message | ||
How big is your file? The max_file_size in the form means 2 KB, not 2
MB...set it to 2000000 for 2 MB.
Jon
----- Original Message -----
From: "Oplinger, Shawn" <SOplinger@anteon.com>
To: <php-general@lists.php.net>
Sent: Tuesday, December 05, 2000 3:35 PM
Subject: [PHP] file uploads
> Hi,
>
> I am trying to upload files to my apache server using php.
> Here is the code from my php form.
>
> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="2000">
> <INPUT TYPE="FILE" NAME="ImageFile" VALUE="">
>
> The form submits, but then I cannot find the file that I sent anywhere on
my
> server.
>
> When I use the phpinfo() function to see what the php environment is set
to
> on my server, I notice that the field for the tmp_file_upload directory
has
> no value.
>
> DIRECTIVE LOCAL VALUE MASTER VALUE
> upload_max_filesize 2M 2M
> upload_tmp_dir no value no value
> user_dir no value no
value
>
> My question is if the upload_tmp_dir directive is set to "no value" as in
my
> servers case, where do the files go when they are uploaded? Do they go
> anywhere? Is there some way for me to specify where the files will go to?
> I am on a shared server, and don't know if they will set the value for
> upload_tmp_dir.
>
> Thanks in advance,
> Shawn :)
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>