I have a project now where I will have a large chunk of CSV text, like 60 lines or more, and need to pass that from the client to the server. I know it would be weird with GET, but how would I store the multiline text so that I could later split it up, etc at my application?
The application needs 2 parameters, the CSV info and a product number parameter. I want to do this via JQuery AJAX call.
Thank you.
You can just POST the data via AJAX and you don’t have to worry about base64 encoding. The newlines you’ll get as “\n” encoded in your POST body.
Sample jQuery code, that posts the value of a multi line textarea (description) to the server:
When displaying the data you’ll need to replace the ‘\n’ newlines with
HTML tags.
HTTP does not limit the size on the POST data, but a browser may do.