Click here to Skip to main content
14,869,378 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

<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

Updated 22-Apr-14 1:07am

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