The question is rather simple if you have Any server side scripting techniques, but in the case of handling[viz. sending] the file as-is to the jSON function.
The scenario is :
I have a fileupload control
<input type="file" id="fileselect" name="fileselect[]" multiple="multiple" />
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.
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 saving the file to the local disk using javascript is a good solution in this scenario rather than passing it to jSON ? Please comment on that also.