i am trying to save a file from chrome using AjaxSubmit. i got the problem that Chrome send the file in octet format and i am unable to check that if it is really image or anything else.
when i try to call
HttpPostedFileBase file
file.InputStream
inputstream caused error in chrome that Parameter is not valid.
how i can save them in asp.net c#
I use this in my view:
<input type="file" id="deploymentPackage" name="deploymentPackage" />And in my controller, I do this:
UPDATE: Look at this link, if you can’t abstract yourself from “my” code.
http://www.codeproject.com/KB/aspnet/Implementing_HTTP_File_Up.aspx