Consider following link.
this link download one pdf file.
how can i direct upload this pdf file in server using server.mappath() ?
how can i direct upload this pdf file in server using server.mappath() ?
Thanks in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Aug 10, 2014, 2:00 AM
return System.Net.Http.HttpRequestMessage.Request.Content.ReadAsMultiPartAsync(this)
Vasu GadhiyaPosted Aug 9, 2014, 4:44 AM
But it occur same error. you can see in screenshot.
can you make small project for out this task.
Guest UserPosted Aug 8, 2014, 3:12 AM
Refer Telerik blog
http://www.telerik.com/support/kb/data-access/details/manually-installing-references-required-by-the-web-api-service
Vasu GadhiyaPosted Aug 7, 2014, 2:08 AM
i am using .net 4.0 (VS 2010).
Guest UserPosted Aug 6, 2014, 7:03 AM
using System.Net.Http;
//so it'll be like System.Net.Http.HttpRequestMessage.Request
Vasu GadhiyaPosted Aug 6, 2014, 3:42 AM
Error2'System.Web.HttpRequest' does not contain a definition for 'Content' and no extension method 'Content' accepting a first argument of type 'System.Web.HttpRequest' could be found (are you missing a using directive or an assembly reference?)
Guest UserPosted Aug 1, 2014, 10:07 PM
to upload you can now enjoy power of async so your application doesn't wait for that process to complete, use below snippet as reference