Re: HTTP Upload Problem

From: Date: Mon, 02 Apr 2001 21:55:04 +0000
Subject: Re: HTTP Upload Problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-46688@lists.php.net to get a copy of this message
I suspect there is a limit on the MAX_FILE_SIZE. You might want to check the RFC, but I suspect you should set the value to be 2gb or less(I think that is the limit). -- phill "Yev" <omenzel@yahoo.com> wrote in message news:20010402214659.26849.qmail@web13405.mail.yahoo.com... > OK, here's my problem > I wrote a simple upload script: > > <? > print_r($HTTP_POST_FILES); > ?> > > <FORM ENCTYPE="multipart/form-data" ACTION="" METHOD=POST> > <INPUT TYPE="hidden" name="MAX_FILE_SIZE" > value="100000000000000000"> > File: <INPUT TYPE=file name=filename size=30> > <INPUT TYPE="submit" VALUE="submit"> > </FORM> > > > I purposely specified MAX_FILE_SIZE to be big since I heard it causes > problems if it's too small: ie files get rejected no matter what. > > If I input any file, the $HTTP_POST_FILES shows the proper stuff, but > the file doesn't exist in "/tmp" (which is set in php.ini), if I leave > the file field empty, then a /tmp/phpXXXXXX file is created with a 0 > byte size. > > What can be the problem? It's not permissions.. > > Yev > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/?.refer=text > > -- > 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 >

« previous php.general (#46688) next »