Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
The question is rather simple if you have [Any server side scripting][1] techniques, but in the case of handling[viz. sending] the file as-is to the jSON function.

The scenario is :

1. I have a fileupload control

HTML
<input type="file" id="fileselect" name="fileselect[]" multiple="multiple" />


2. with the help of javascript or jQuery, I need to take the uploaded file of this control on "upload" button click.
I need to POST this file to the jSON.

3. Why need to post it as-is is because the file can be .zip or .text [Image file wont be used], I have functions in my Controllers that will work on that file[like Extract/Save/Process, etc]

Any good way that works on all browsers to do this ?

Also in below

[1]: http://www.w3.org/TR/WCAG20-TECHS/server-side-script.html
Posted
Updated 22-Apr-14 1:07am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900