1

I wonder if there is a posibility not to use input file tag and pass file to server. For example, i want to pass image that is shown in <img /> tag.

1
  • Pass it as base 64 encoded string format of bytes and convert it back to bytes in server side Commented Apr 1, 2014 at 9:30

1 Answer 1

0

You can use the javascript XHR object to upload a file to the server. This approach does not use HttpPostedFileBase. There's a good example of how to do it here: File API File Upload - Read XMLHttpRequest in ASP.NET MVC

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.