Ajax image upload and javascript edit on the fly with ASP.NET MVC (without saving to disk)
- by gavss
1) Uploadimage action gets requests from form posts.
<form action="/content/uploadimage" method="post" enctype="multipart/form-data">
It reads HttpPostedFileBase stream data and sends it to the response.
I need to show the image in a div container instead of sending it to the response as a file so that users can manipulate the image using jcrop.
Image source is generated at runtime. I can't pass an action name to the src attribute. Is this possible using MVC and without using control viewstate?
2) I don't want to use flash or silverlight. Is there an easy ajax alternative to the method I use to get files from user?