how can i upload a file uisng <input type="file"> html tag and upload to server.
I hav to call a method "Image/SaveThumbnail" . What this method does is , it returns a json of the format
"status":"true",
"fileUrl":"the url of the saved location"
The server method is already working and now i want to call this & process the response on IE browser. I use XMLHttpRequest , but that is not working on IE browser. So how can i do this ? any sample code is there or a sample application ?
JIBIN MATHEW
Member
61 Points
55 Posts
Upload file from form and proces sthe response via ajax
Feb 29, 2012 10:17 AM|LINK
Hi
how can i upload a file uisng <input type="file"> html tag and upload to server.
I hav to call a method "Image/SaveThumbnail" . What this method does is , it returns a json of the format
"status":"true",
"fileUrl":"the url of the saved location"
The server method is already working and now i want to call this & process the response on IE browser. I use XMLHttpRequest , but that is not working on IE browser. So how can i do this ? any sample code is there or a sample application ?
ramanselva
Contributor
2064 Points
324 Posts
Re: Upload file from form and proces sthe response via ajax
Feb 29, 2012 11:29 AM|LINK
Hi,
I am not sure can we do file upload in Microsoft Ajax/Ajax control toolkit without using
any specific plugins..Here there is a workaround using IFrame.Hope it helps you..
http://www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html
This can be beneficial to other community members reading the thread.
Regards,
Rama Selvam M.
JIBIN MATHEW
Member
61 Points
55 Posts
Re: Upload file from form and proces sthe response via ajax
Mar 01, 2012 06:01 AM|LINK
The link seems to be useful , but i think its not possible to process the json response using that..
Is any other way / some jquery library's that works on IE browser as well
JIBIN MATHEW
Member
61 Points
55 Posts
Re: Upload file from form and proces sthe response via ajax
Mar 01, 2012 10:58 AM|LINK
i got another alternative using Jquery form plugin. The solution i got is explained here
http://forums.asp.net/p/1775544/4858752.aspx/1?p=True&t=634661818392042595
Pls help me to solve the current problem if you know