I am trying to solve a small problem. I created an entire ASP.NET web application using mostly the client side (jQuery / JavaScript). I use generic handlers to do lazy data loading, as well as auto-complete, etc.
One of the requirements is that one page must be able to upload a file, as well as display meta-information about uploadead files.
I am also wondering if there is a way to fully download a file from jQuery / JavaScript. I researched whole plugins, but they all rely on having a php backend.
My thought was to create a message:
$(function(){ $('#submit').live('click', function(event){ $.post('/SomeOtherHandler.ashx',
Will this work? I know that if you include the json object { filename: value, timestamp: value } , it will appear in the HttpContext.Request.Params collection, where I can read it without any problems.
The problem is that I do not know how this will work, since the FileUpload html control only saves the file name in its value. So I would send a string to my server with a file name, not an array of bytes.
Any thoughts on this would be greatly appreciated!
bleepzter
source share