We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

How to get around form post limit

Medium Priority
518 Views
Last Modified: 2012-05-07
I'm developing an app that needs to save a large chunk of text data to a database. I've noticed if I exceed 64,000 characters (64k) when I submit my form it will truncate to 64k. I'm using the POST method of the form.

Is there a way to circumvent this limitation? The website is being hosted at a third party company so I don't have the option of changing any settings on the server-side, like in IIS.

I noticed Google Docs has a limit of 500k per document, but I bet they host their own web servers as well and can make changes to the POST limit on their servers.

Is there any other way around this? Can I use something other than a form to submit user entered data to the server that would have a higher limit? Or is my only hope changing settings on the actual server? Thanks for your help!
Comment
Watch Question

Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
I thought about that and that would be an acceptable solution, but I'm not sure how to implement something like that.

let's say before the user hits save I run a check to see what size the data is. Then I split the string into acceptable sizes as you say. But then how do I send it over? Would I have to just loop a function that performed multiple database updates appending all the data into one? It seems like this would require a lot of database calls, which would slow the saving process down quite a bit.

Am I thinking this through wrong?

Commented:
look at the javascript prototype library. There are good examples of AJAX calls.
About the split process you can use string obejct method and propety
stringObject.substring(start,stop)
stringObject.length;

you can call your custom function in a button onclick event and even do not submit the form. Just make AJAX call to server.

Yes you will make more than one update on the sting on server side in this case.

Author

Commented:
Thanks for info. I understand the AJAX part of it I was just hoping I could avoid making more than one database update.

Any other thoughts? Otherwise I will try the AJAX method in the meantime and see how much it slows things down. Thanks!
Michel PlungjanIT Expert
CERTIFIED EXPERT
Top Expert 2009

Commented:
Never heard of a post limit

sounds like a limit on your server - perhaps in the "glob" or whatever you want to save it in

There is a limit on GET and on URL

http://support.microsoft.com/kb/q208427/
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.