Solved

How to get around form post limit

Posted on 2009-07-10
5
496 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!
0
Comment
Question by:skinneejoe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
Dlegia earned 500 total points
ID: 24827975
Maybe you can make an AJAX call which will split the content on parts of acceptable sizes

then on server side just join splited parts. That is just an idea, not tested solution
0
 

Author Comment

by:skinneejoe
ID: 24828016
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?
0
 
LVL 2

Expert Comment

by:Dlegia
ID: 24828069
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.

0
 

Author Comment

by:skinneejoe
ID: 24828100
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!
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24834529
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/
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question