Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 23, 2012 12:25 AM by Flavius Demian
Jul 24, 2009 07:49 AM|LINK
I am new to ASP.NET 3.5 MVC, I want to upload file using AJAX form.
When I am using html form then I am able to upload files but my requirement is that I am using user control for edit profile, I am using tabs for the same where in we are having multiple tabs for edit profile, change password, etc.
While using AJAX form having enctype = "multipart/form-data" then following statement did not get the files
foreach (string filename in Request.Files)
Please help me find the solution
Thanks in advance
Jul 24, 2009 09:51 AM|LINK
Ajax.BeginForm does not allow to upload files and it is not the fault of Ajax.BeginForm.Infact ajax does not allow multipart/form-data enctype. plz see this
http://forums.asp.net/t/1445179.aspx for more help. Hope this post help .
Jul 24, 2009 01:17 PM|LINK
Thanks for the support, that post really helps me solving the problem, from there I got the link to following url: http://www.webtoolkit.info/ajax-file-upload.html which helps me solve the problem.
I got the idea from there and solve the problem.
Sep 26, 2009 05:48 PM|LINK
Were you able to solve this problem with AJAX.BeginForm?
Nov 10, 2009 04:23 AM|LINK
Yes I am able to solve the problem
Aug 05, 2010 12:49 AM|LINK
Why take the time to respond with "yes I got it working" when you don't post your solution?
Sep 17, 2010 10:56 AM|LINK
why bother lol? I wish there was a like button as in facebook xD people are nice sometimes and like to share info
Oct 25, 2010 01:18 PM|LINK
Here a sample project, that shows ASP.NET ajax upload usage ( without runat=server or WebForms)
ASP.NET ajax upload
Nov 23, 2012 12:25 AM|LINK
It is possible, the answer is here:
I did it myself and it's guaranteed it works.