0
bilalhaidar created
Hi I noticed the upload profile pic is using normal MVC controller while rest of appl using AppServices and Web API. Is there a preference or limitation to not use AppServices?
Thanks
4 Answer(s)
-
0
Hi,
We think it is the natural way of doing file upload for web. I personally didn't do file upload with app services before.
-
0
Hi Ismail,
In my case, I am uploading a model including a file. Once the user finishes filling the form and uploads a file, I need to submit once to server.
How can I access the HttpPostedFile in an AppService? Any way of doing so?
Thanks
-
0
I haven't tried it but it should work for app services as well. Just define a form like this
<form enctype="multipart/form-data" method="post" action="UrlOfAppServiceMethod"> //Fields here... </form>
and submit it when user clicks submit button.
-
0
Thank you :-)