I have a form which contains a file upload (<2MB) and a textarea where I need users to be able to insert up to 10,000 characters. However, when I put large amounts of text in that field (tested with 8,000 characters) I get the internal server 500 error. So I guess I have these quesions...
How can I programatically catch this error and handle it appropriately?
Is it because I have a multipart form... Should I split it up into 2 different forms?
How do I know how much is too much to POST?
Can I adjust somewhere how much can be POSTed?
- Micah
Internal Server Error 500 with large POST
Moderator: General Moderators
-
MicahCarrick
- Forum Newbie
- Posts: 23
- Joined: Sat Apr 09, 2005 5:40 pm
As far as I know, you can't.How can I programatically catch this error and handle it appropriately?
http://us2.php.net/manual/en/ini.core.p ... t-max-sizeHow do I know how much is too much to POST?
Can I adjust somewhere how much can be POSTed?
-
MicahCarrick
- Forum Newbie
- Posts: 23
- Joined: Sat Apr 09, 2005 5:40 pm
Just to see if it's the problem... I modified php.ini with the following...
post_max_size = "32M"
upload_max_filesize = "5M"
memory_limit = "16M"
max_execution_time = 60
max_input_time = 90
And it still does it. I can put 4000 characters in the textarea and it posts fine. But when I have the textarea with those 4000 characters AND 2 files being uploaded (totally about 1 MB) I get the Internal Server Error 500.
Any more suggestions?
post_max_size = "32M"
upload_max_filesize = "5M"
memory_limit = "16M"
max_execution_time = 60
max_input_time = 90
And it still does it. I can put 4000 characters in the textarea and it posts fine. But when I have the textarea with those 4000 characters AND 2 files being uploaded (totally about 1 MB) I get the Internal Server Error 500.
Any more suggestions?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Try posting only a large amount of text with no files. Say, 6000 characters. In fact, take the 4000 character string you are saying works and use it twice (copy and paste it) to see if it is the file uploads in conjunction with the large text post or if it is just the large text post.MicahCarrick wrote:And it still does it. I can put 4000 characters in the textarea and it posts fine. But when I have the textarea with those 4000 characters AND 2 files being uploaded (totally about 1 MB) I get the Internal Server Error 500.
Any more suggestions?