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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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" <[EMAIL PROTECTED]> wrote in message > >>news:[EMAIL PROTECTED] > >> > >> > >>>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" <[EMAIL PROTECTED]> wrote in message > >>>>news:[EMAIL PROTECTED] > >>>> > >>>> > >>>> > >>-- > >>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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php