Ajax image upload and javascript edit on the fly with ASP.NET MVC (without saving to disk)
Posted
by gavss
on Stack Overflow
See other posts from Stack Overflow
or by gavss
Published on 2010-04-21T12:40:47Z
Indexed on
2010/04/21
12:43 UTC
Read the original article
Hit count: 162
asp.net-mvc
|file-upload
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?
© Stack Overflow or respective owner