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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #259 · 9.8K reputationPosted Aug 1, 2014, 6:07 PM EDT
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
Vasu GadhiyaRank #7,540 · 239 reputationPosted Aug 5, 2014, 11:42 PM EDT
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 UserRank #259 · 9.8K reputationPosted Aug 6, 2014, 3:03 AM EDT
using System.Net.Http;
//so it'll be like System.Net.Http.HttpRequestMessage.Request
Vasu GadhiyaRank #7,540 · 239 reputationPosted Aug 6, 2014, 10:08 PM EDT
i am using .net 4.0 (VS 2010).
Guest UserRank #259 · 9.8K reputationPosted Aug 7, 2014, 11:12 PM EDT
Refer Telerik blog
http://www.telerik.com/support/kb/data-access/details/manually-installing-references-required-by-the-web-api-service
Vasu GadhiyaRank #7,540 · 239 reputationPosted Aug 9, 2014, 12:44 AM EDT
But it occur same error. you can see in screenshot.
can you make small project for out this task.
Guest UserRank #259 · 9.8K reputationPosted Aug 9, 2014, 10:00 PM EDT
return System.Net.Http.HttpRequestMessage.Request.Content.ReadAsMultiPartAsync(this)