This is a discussion on Can't upload file greater than 11kb within the PHP General forums, part of the PHP Programming Forums category; Since this install of PHP is a CGI module, the server limits any execution to 30 seconds. Why should upload_max_filesize ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Since this install of PHP is a CGI module, the server limits any execution
to 30 seconds. Why should upload_max_filesize be greater than post_max_size? Why would this have any effect on a file size of 11kb? "Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message news:3FF012CF.6050701@webglobe.sk... > post_max_size should be greater than upload_max_filesize. > > What is the setting for max_input_time? > > Chris wrote: > > post_max_size: 8M > > upload_max_filesize: 10M > > > > what quota and disk space affect the web server process and temp dir > > > > This site is hosted by a third party: > > Disk space is 400MB only a fraction is used. > > temp dir -- unknown > > > > > > Chris -- > > > > ...and then Chris said... > > % > > % script on many php servers. However I am on one now which is not allowing > > me > > % to upload a file greater than 12kb. > > > > What does phpinfo() say for > > > > post_max_size > > upload_max_filesize > > > > and what quota and disk space affect the web server process and temp dir? > > > > > > HTH & HAND > > > > "David T-G" <davidtg-php@justpickone.org> wrote in message > > news:20031223202218.GN4027@justpickone.org... > > |
|
|||
|
your file is sent through post.
If your post upload max size is smaller then your upload max size, then the file wouldn't all fit within the post data that PHP will accept. Your upload would then get blocked. Therefore, post_max_size should be set to a larger value then upload_max_filesize to allow the upload to work in the first place. Andrew. > Since this install of PHP is a CGI module, the server limits any execution > to 30 seconds. Why should upload_max_filesize be greater than > post_max_size? > Why would this have any effect on a file size of 11kb? > > "Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message > news:3FF012CF.6050701@webglobe.sk... >> post_max_size should be greater than upload_max_filesize. >> >> What is the setting for max_input_time? >> >> Chris wrote: >> > post_max_size: 8M >> > upload_max_filesize: 10M >> > >> > what quota and disk space affect the web server process and temp dir >> > >> > This site is hosted by a third party: >> > Disk space is 400MB only a fraction is used. >> > temp dir -- unknown >> > >> > >> > Chris -- >> > >> > ...and then Chris said... >> > % >> > % script on many php servers. However I am on one now which is not > allowing >> > me >> > % to upload a file greater than 12kb. >> > >> > What does phpinfo() say for >> > >> > post_max_size >> > upload_max_filesize >> > >> > and what quota and disk space affect the web server process and temp > dir? >> > >> > >> > HTH & HAND >> > >> > "David T-G" <davidtg-php@justpickone.org> wrote in message >> > news:20031223202218.GN4027@justpickone.org... >> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > |
|
|||
|
Hi,
Both Marek and Asegu have raised a very valid point about upload_max_filesize < post_max_size hower Chris seems to have set this in megabytes but the limit kicks in to place at 11 KILO bytes. That's why i am convinced it's either an apache setting or a proxy getting in the way. Chris, in an earlier message you have said using .htaccess is not part of the requirement!? can you explain what you mean by that? To answer your other question on timing the max execution time is not considered important for handling file uploads but max input time is very important. Asegu wrote: >your file is sent through post. > >If your post upload max size is smaller then your upload max size, then >the file wouldn't all fit within the post data that PHP will accept. Your >upload would then get blocked. >Therefore, post_max_size should be set to a larger value then >upload_max_filesize to allow the upload to work in the first place. > >Andrew. > > > > >>Since this install of PHP is a CGI module, the server limits any execution >>to 30 seconds. Why should upload_max_filesize be greater than >>post_max_size? >>Why would this have any effect on a file size of 11kb? >> >>"Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message >>news:3FF012CF.6050701@webglobe.sk... >> >> >>>post_max_size should be greater than upload_max_filesize. >>> >>>What is the setting for max_input_time? >>> >>>Chris wrote: >>> >>> >>>>post_max_size: 8M >>>>upload_max_filesize: 10M >>>> >>>>what quota and disk space affect the web server process and temp dir >>>> >>>>This site is hosted by a third party: >>>>Disk space is 400MB only a fraction is used. >>>>temp dir -- unknown >>>> >>>> >>>>Chris -- >>>> >>>>...and then Chris said... >>>>% >>>>% script on many php servers. However I am on one now which is not >>>> >>>> >>allowing >> >> >>>>me >>>>% to upload a file greater than 12kb. >>>> >>>>What does phpinfo() say for >>>> >>>> post_max_size >>>> upload_max_filesize >>>> >>>>and what quota and disk space affect the web server process and temp >>>> >>>> >>dir? >> >> >>>>HTH & HAND >>>> >>>>"David T-G" <davidtg-php@justpickone.org> wrote in message >>>>news:20031223202218.GN4027@justpickone.org.. . >>>> >>>> >>>> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> >> >> > > > -- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. |
|
|||
|
The application is going to being supplied to a number of customers who may
not know how to or don't have the ability to create/modify a .htaccess file. I tend to agree with Raditha about this being an Apache issue. Upon complaint to the hosting provider about this issue the did something that increased the upload file size to several hundred kilobytes. They claimed it has something to do with the temp dir where the file is being uploaded to. My suspect now is this issue has nothing to do with php. I'll bet I could write a cgi script as an action to the form and would encounter the same problem. Chris "Raditha Dissanayake" <jabber@raditha.com> wrote in message news:3FF04DDE.8060508@raditha.com... > Hi, > Both Marek and Asegu have raised a very valid point about > upload_max_filesize < post_max_size > hower Chris seems to have set this in megabytes but the limit kicks in > to place at 11 KILO bytes. That's why i am convinced it's either an > apache setting or a proxy getting in the way. > > Chris, in an earlier message you have said using .htaccess is not part > of the requirement!? can you explain what you mean by that? > > To answer your other question on timing the max execution time is not > considered important for handling file uploads but max input time is > very important. > > > Asegu wrote: > > >your file is sent through post. > > > >If your post upload max size is smaller then your upload max size, then > >the file wouldn't all fit within the post data that PHP will accept. Your > >upload would then get blocked. > >Therefore, post_max_size should be set to a larger value then > >upload_max_filesize to allow the upload to work in the first place. > > > >Andrew. > > > > > > > > > >>Since this install of PHP is a CGI module, the server limits any execution > >>to 30 seconds. Why should upload_max_filesize be greater than > >>post_max_size? > >>Why would this have any effect on a file size of 11kb? > >> > >>"Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message > >>news:3FF012CF.6050701@webglobe.sk... > >> > >> > >>>post_max_size should be greater than upload_max_filesize. > >>> > >>>What is the setting for max_input_time? > >>> > >>>Chris wrote: > >>> > >>> > >>>>post_max_size: 8M > >>>>upload_max_filesize: 10M > >>>> > >>>>what quota and disk space affect the web server process and temp dir > >>>> > >>>>This site is hosted by a third party: > >>>>Disk space is 400MB only a fraction is used. > >>>>temp dir -- unknown > >>>> > >>>> > >>>>Chris -- > >>>> > >>>>...and then Chris said... > >>>>% > >>>>% script on many php servers. However I am on one now which is not > >>>> > >>>> > >>allowing > >> > >> > >>>>me > >>>>% to upload a file greater than 12kb. > >>>> > >>>>What does phpinfo() say for > >>>> > >>>> post_max_size > >>>> upload_max_filesize > >>>> > >>>>and what quota and disk space affect the web server process and temp > >>>> > >>>> > >>dir? > >> > >> > >>>>HTH & HAND > >>>> > >>>>"David T-G" <davidtg-php@justpickone.org> wrote in message > >>>>news:20031223202218.GN4027@justpickone.org.. . > >>>> > >>>> > >>>> > >>-- > >>PHP General Mailing List (http://www.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > >> > >> > >> > > > > > > > > > -- > Raditha Dissanayake. > ------------------------------------------------------------------------ > http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload > Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader > Graphical User Inteface. Just 150 KB | with progress bar. |
|
|||
|
Chris, et al --
...and then Chris said... % % complaint to the hosting provider about this issue the did something that % increased the upload file size to several hundred kilobytes. They claimedit % has something to do with the temp dir where the file is being uploaded to. Hah! I called it six days ago :-) Glad to see you're up and running, and good luck beating this problem with your customers. HTH & HAND & Happy Holidays :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE/8QkQGb7uCXufRwARAl2EAJkBdiz5i0abag7PIw6KUbh6E90LMQ CePqdz nwJvAikWqHIp26a7is20SEw= =WhQp -----END PGP SIGNATURE----- |