Re: [PHP] Can't upload file greater than 11kb
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
Re: [PHP] Can't upload file greater than 11kb
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
Re: [PHP] Can't upload file greater than 11kb
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't upload file greater than 11kb
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
Re: [PHP] Can't upload file greater than 11kb
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
Re: [PHP] Can't upload file greater than 11kb
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 claimed it % 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) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, Science and Health http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
Re: [PHP] Can't upload file greater than 11kb
Hi, if you are lucky LimitRequestBody could go into a .htaccess file (not sure though been a couple of months since i last read the manual) Chris wrote: It has been my experience that max_file_size does terminate the upload process if you include it in the form. But you are right, if it gets to the upload, your stuck. LimitRequestBody is beyond my control as the site is hosted by a third party. Thanks Chris Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, It's often said in many newsgroups and articles that the max_file_size is next to useless. It's also said that once IE starts uploading it will not stop even if you keep you foot on the stop button! If i remembers the earlier messages you have said the php.ini settings are correct. If so it could well be that you might be having misconfigured proxy server or firewall in the way. Apache also has a setting (LimitRequestBody) that could effect your upload. all the best Chris wrote: I don't believe that the MAX_FILE_SIZE needs to be there. It will only terminate the upload process at the client, rather than wait for the upload to complete. Anyway with or without MAX_FILE_SIZE the upload process is being terminated after the file is uploaded. When the form is submitted, the selected file is uploaded to the server's temp directory then copied to the maps dir. For some reason, when the file size exceeds 11kb (very small) the process gets aborted (with or without MAX_FILE_SIZE). I've put in diagnostic messages and the POST script throws an error message if it can't find the file in the temp directory. I've uploaded several file sizes up to the max of 2MB and it appears the file is being uploaded. I base this assumption on the fact the upload time is proportional to the file size. When the file size is greater than 11kb it appears that the file is deleted from the temp dir. Still no idea what is going on. Chris Larry Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The input type=hidden ... is more than a convenience for the client. It must be before the ...type=file... tag and after form.. (at least with Mozilla Firebird as the client) If you have it in there and remember it is in bytes not kb and set it to a size large enough the script accepting the file will show $_FILE['name'] and it will show $_FILE['tmp_name'] having the temporary file. Then you take that hidden tag out and do the same the $_FILE['tmp_name'] variable will be empty since it did not recieve the file. So I know at least in my case that the hidden field has to be there. Larry -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 8:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Can't upload file greater than 11kb I've got a situation where I want to upload a file to a server then enter the data in that file into mysql. I have used this well documented upload form form enctype=multipart/form-data action=_URL_ method=POST Send this file: input name=userfile type=file input type=submit value=Send File /form script on many php servers. However I am on one now which is not allowing me to upload a file greater than 12kb. I know the upload_max_filesize is 2M but something else is stopping the upload and I don't have a clue what it is. I know you should include input type=hidden name=MAX_FILE_SIZE value=3 in the above form but that is only a convenience for the user. This particular server is running php as a cgi module. Thanks Chris -- 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. -- 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
Re: [PHP] Can't upload file greater than 11kb
Unfortunately, creating/editing .htaccess is not an operational requirement. Thanks anyway. Chris Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, if you are lucky LimitRequestBody could go into a .htaccess file (not sure though been a couple of months since i last read the manual) Chris wrote: It has been my experience that max_file_size does terminate the upload process if you include it in the form. But you are right, if it gets to the upload, your stuck. LimitRequestBody is beyond my control as the site is hosted by a third party. Thanks Chris Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, It's often said in many newsgroups and articles that the max_file_size is next to useless. It's also said that once IE starts uploading it will not stop even if you keep you foot on the stop button! If i remembers the earlier messages you have said the php.ini settings are correct. If so it could well be that you might be having misconfigured proxy server or firewall in the way. Apache also has a setting (LimitRequestBody) that could effect your upload. all the best Chris wrote: I don't believe that the MAX_FILE_SIZE needs to be there. It will only terminate the upload process at the client, rather than wait for the upload to complete. Anyway with or without MAX_FILE_SIZE the upload process is being terminated after the file is uploaded. When the form is submitted, the selected file is uploaded to the server's temp directory then copied to the maps dir. For some reason, when the file size exceeds 11kb (very small) the process gets aborted (with or without MAX_FILE_SIZE). I've put in diagnostic messages and the POST script throws an error message if it can't find the file in the temp directory. I've uploaded several file sizes up to the max of 2MB and it appears the file is being uploaded. I base this assumption on the fact the upload time is proportional to the file size. When the file size is greater than 11kb it appears that the file is deleted from the temp dir. Still no idea what is going on. Chris Larry Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The input type=hidden ... is more than a convenience for the client. It must be before the ...type=file... tag and after form.. (at least with Mozilla Firebird as the client) If you have it in there and remember it is in bytes not kb and set it to a size large enough the script accepting the file will show $_FILE['name'] and it will show $_FILE['tmp_name'] having the temporary file. Then you take that hidden tag out and do the same the $_FILE['tmp_name'] variable will be empty since it did not recieve the file. So I know at least in my case that the hidden field has to be there. Larry -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 8:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Can't upload file greater than 11kb I've got a situation where I want to upload a file to a server then enter the data in that file into mysql. I have used this well documented upload form form enctype=multipart/form-data action=_URL_ method=POST Send this file: input name=userfile type=file input type=submit value=Send File /form script on many php servers. However I am on one now which is not allowing me to upload a file greater than 12kb. I know the upload_max_filesize is 2M but something else is stopping the upload and I don't have a clue what it is. I know you should include input type=hidden name=MAX_FILE_SIZE value=3 in the above form but that is only a convenience for the user. This particular server is running php as a cgi module. Thanks Chris -- 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. -- 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
RE: [PHP] Can't upload file greater than 11kb
The input type=hidden ... is more than a convenience for the client. It must be before the ...type=file... tag and after form.. (at least with Mozilla Firebird as the client) If you have it in there and remember it is in bytes not kb and set it to a size large enough the script accepting the file will show $_FILE['name'] and it will show $_FILE['tmp_name'] having the temporary file. Then you take that hidden tag out and do the same the $_FILE['tmp_name'] variable will be empty since it did not recieve the file. So I know at least in my case that the hidden field has to be there. Larry -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 8:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Can't upload file greater than 11kb I've got a situation where I want to upload a file to a server then enter the data in that file into mysql. I have used this well documented upload form form enctype=multipart/form-data action=_URL_ method=POST Send this file: input name=userfile type=file input type=submit value=Send File /form script on many php servers. However I am on one now which is not allowing me to upload a file greater than 12kb. I know the upload_max_filesize is 2M but something else is stopping the upload and I don't have a clue what it is. I know you should include input type=hidden name=MAX_FILE_SIZE value=3 in the above form but that is only a convenience for the user. This particular server is running php as a cgi module. Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't upload file greater than 11kb
I don't believe that the MAX_FILE_SIZE needs to be there. It will only terminate the upload process at the client, rather than wait for the upload to complete. Anyway with or without MAX_FILE_SIZE the upload process is being terminated after the file is uploaded. When the form is submitted, the selected file is uploaded to the server's temp directory then copied to the maps dir. For some reason, when the file size exceeds 11kb (very small) the process gets aborted (with or without MAX_FILE_SIZE). I've put in diagnostic messages and the POST script throws an error message if it can't find the file in the temp directory. I've uploaded several file sizes up to the max of 2MB and it appears the file is being uploaded. I base this assumption on the fact the upload time is proportional to the file size. When the file size is greater than 11kb it appears that the file is deleted from the temp dir. Still no idea what is going on. Chris Larry Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The input type=hidden ... is more than a convenience for the client. It must be before the ...type=file... tag and after form.. (at least with Mozilla Firebird as the client) If you have it in there and remember it is in bytes not kb and set it to a size large enough the script accepting the file will show $_FILE['name'] and it will show $_FILE['tmp_name'] having the temporary file. Then you take that hidden tag out and do the same the $_FILE['tmp_name'] variable will be empty since it did not recieve the file. So I know at least in my case that the hidden field has to be there. Larry -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 8:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Can't upload file greater than 11kb I've got a situation where I want to upload a file to a server then enter the data in that file into mysql. I have used this well documented upload form form enctype=multipart/form-data action=_URL_ method=POST Send this file: input name=userfile type=file input type=submit value=Send File /form script on many php servers. However I am on one now which is not allowing me to upload a file greater than 12kb. I know the upload_max_filesize is 2M but something else is stopping the upload and I don't have a clue what it is. I know you should include input type=hidden name=MAX_FILE_SIZE value=3 in the above form but that is only a convenience for the user. This particular server is running php as a cgi module. Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't upload file greater than 11kb
Hi, It's often said in many newsgroups and articles that the max_file_size is next to useless. It's also said that once IE starts uploading it will not stop even if you keep you foot on the stop button! If i remembers the earlier messages you have said the php.ini settings are correct. If so it could well be that you might be having misconfigured proxy server or firewall in the way. Apache also has a setting (LimitRequestBody) that could effect your upload. all the best Chris wrote: I don't believe that the MAX_FILE_SIZE needs to be there. It will only terminate the upload process at the client, rather than wait for the upload to complete. Anyway with or without MAX_FILE_SIZE the upload process is being terminated after the file is uploaded. When the form is submitted, the selected file is uploaded to the server's temp directory then copied to the maps dir. For some reason, when the file size exceeds 11kb (very small) the process gets aborted (with or without MAX_FILE_SIZE). I've put in diagnostic messages and the POST script throws an error message if it can't find the file in the temp directory. I've uploaded several file sizes up to the max of 2MB and it appears the file is being uploaded. I base this assumption on the fact the upload time is proportional to the file size. When the file size is greater than 11kb it appears that the file is deleted from the temp dir. Still no idea what is going on. Chris Larry Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The input type=hidden ... is more than a convenience for the client. It must be before the ...type=file... tag and after form.. (at least with Mozilla Firebird as the client) If you have it in there and remember it is in bytes not kb and set it to a size large enough the script accepting the file will show $_FILE['name'] and it will show $_FILE['tmp_name'] having the temporary file. Then you take that hidden tag out and do the same the $_FILE['tmp_name'] variable will be empty since it did not recieve the file. So I know at least in my case that the hidden field has to be there. Larry -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 8:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Can't upload file greater than 11kb I've got a situation where I want to upload a file to a server then enter the data in that file into mysql. I have used this well documented upload form form enctype=multipart/form-data action=_URL_ method=POST Send this file: input name=userfile type=file input type=submit value=Send File /form script on many php servers. However I am on one now which is not allowing me to upload a file greater than 12kb. I know the upload_max_filesize is 2M but something else is stopping the upload and I don't have a clue what it is. I know you should include input type=hidden name=MAX_FILE_SIZE value=3 in the above form but that is only a convenience for the user. This particular server is running php as a cgi module. Thanks Chris -- 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
Re: [PHP] Can't upload file greater than 11kb
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 :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, Science and Health http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
Re: [PHP] Can't upload file greater than 11kb
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
Re: [PHP] Can't upload file greater than 11kb
It has been my experience that max_file_size does terminate the upload process if you include it in the form. But you are right, if it gets to the upload, your stuck. LimitRequestBody is beyond my control as the site is hosted by a third party. Thanks Chris Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, It's often said in many newsgroups and articles that the max_file_size is next to useless. It's also said that once IE starts uploading it will not stop even if you keep you foot on the stop button! If i remembers the earlier messages you have said the php.ini settings are correct. If so it could well be that you might be having misconfigured proxy server or firewall in the way. Apache also has a setting (LimitRequestBody) that could effect your upload. all the best Chris wrote: I don't believe that the MAX_FILE_SIZE needs to be there. It will only terminate the upload process at the client, rather than wait for the upload to complete. Anyway with or without MAX_FILE_SIZE the upload process is being terminated after the file is uploaded. When the form is submitted, the selected file is uploaded to the server's temp directory then copied to the maps dir. For some reason, when the file size exceeds 11kb (very small) the process gets aborted (with or without MAX_FILE_SIZE). I've put in diagnostic messages and the POST script throws an error message if it can't find the file in the temp directory. I've uploaded several file sizes up to the max of 2MB and it appears the file is being uploaded. I base this assumption on the fact the upload time is proportional to the file size. When the file size is greater than 11kb it appears that the file is deleted from the temp dir. Still no idea what is going on. Chris Larry Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The input type=hidden ... is more than a convenience for the client. It must be before the ...type=file... tag and after form.. (at least with Mozilla Firebird as the client) If you have it in there and remember it is in bytes not kb and set it to a size large enough the script accepting the file will show $_FILE['name'] and it will show $_FILE['tmp_name'] having the temporary file. Then you take that hidden tag out and do the same the $_FILE['tmp_name'] variable will be empty since it did not recieve the file. So I know at least in my case that the hidden field has to be there. Larry -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 8:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Can't upload file greater than 11kb I've got a situation where I want to upload a file to a server then enter the data in that file into mysql. I have used this well documented upload form form enctype=multipart/form-data action=_URL_ method=POST Send this file: input name=userfile type=file input type=submit value=Send File /form script on many php servers. However I am on one now which is not allowing me to upload a file greater than 12kb. I know the upload_max_filesize is 2M but something else is stopping the upload and I don't have a clue what it is. I know you should include input type=hidden name=MAX_FILE_SIZE value=3 in the above form but that is only a convenience for the user. This particular server is running php as a cgi module. Thanks Chris -- 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