TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vasu Gadhiya
NA
429
103.3k
How To Upload File From Download link.
Jul 31 2014 7:38 AM
How To Upload File From Download link.
Consider following link.
http://www.gia.edu/otmm_wcs_int/proxy-pdf/?ReportNumber=2131526452&url=https://myapps.gia.edu/RptChkClient/reportClient.do?ReportNumber=F65178588EBEDB9B1A3C88E9E7470163
this link download one pdf file.
how can i direct upload this pdf file in server using server.mappath() ?
Thanks in advance.
Reply
Answers (
7
)
0
Guest User
Tech Writer
13.2k
1m
Aug 10 2014 2:00 AM
You can use in your code like this:
return
System.Net.Http.HttpRequestMessage.Request.Content.ReadAsMultiPartAsync(this)
0
Vasu Gadhiya
0
429
103.3k
Aug 9 2014 4:44 AM
As You say I add
System.Net.Http;
But it occur same error. you can see in screenshot.
can you make small project for out this task.
0
Guest User
Tech Writer
13.2k
1m
Aug 8 2014 3:12 AM
this class is part of WebApi in .net
Refer Telerik blog
http://www.telerik.com/support/kb/data-access/details/manually-installing-references-required-by-the-web-api-service
0
Vasu Gadhiya
0
429
103.3k
Aug 7 2014 2:08 AM
i cant find
System.Net.Http;
i am using .net 4.0 (VS 2010).
0
Guest User
Tech Writer
13.2k
1m
Aug 6 2014 7:03 AM
I missed to tell you, use this:
using System.Net.Http;
//so it'll be like System.Net.Http.HttpRequestMessage.Request
0
Vasu Gadhiya
0
429
103.3k
Aug 6 2014 3:42 AM
Error in
Request.Content
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?)
0
Guest User
Tech Writer
13.2k
1m
Aug 1 2014 10:07 PM
Following convention, we generally upload at App_Data folder but you can choose any folder of your own choice
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
protected Task DoUpload()
{
try
{
return Request.Content.ReadAsMultipartAsync(this)
}
catch (System.Exception e)
{
throw e;
}
}
am getting error while run asp.net pjt in IIS
How to keep a multiple tab index with in a same field in win