Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 10, 2012 03:48 AM by asteranup
May 09, 2012 07:30 AM|LINK
I want to upload/download the file using Html5 with jquery(Xmlhhtprequest) and Rest service with no ASPX page, only there are simple html pages.
i tried it to upload the file through xmlhttprequest but not able to get sucess that how the image save on server and download from server.
Can anyone tell me how can i achieve this?
and also provide any exapmple with that.
i am really thankful to you.
With best Regards,
May 09, 2012 07:34 AM|LINK
You can check this post-
Instead of using the aspx page as uploader file you can try-
<form id="form1" enctype="multipart/form-data" method="post" action="your rest url">
May 09, 2012 08:04 AM|LINK
First thanks for your valuable reply.
I tried your answer, but i have a signup page in which user fill his details like username, emailaddress etc and also add an image. So how this possible with one form tag.
and also i have put my Rest URl there, but how can i save the image.
Do we need to save the image in database and if yes, what is the datatype we need to create and also what about retrieving the image.
and if any another solution plz tell me.
i am really oblidge to you.
May 09, 2012 08:50 AM|LINK
Check the below link!
Hope it helps u...
May 09, 2012 10:56 AM|LINK
Sorry ,but we can't use Form collection in the Rest Service.
My purpose is to save the file on the server.
May 09, 2012 01:29 PM|LINK
check this site:
May 10, 2012 03:48 AM|LINK
Not sure what kind of rest service you are using. But you may have some idea here-