views:

56

answers:

3

Hi! In my site, user want to upload a pdf file and I have to save it into my own server. I don't need the content to be saved. I want the exact file to be copied into my server where the published file of the site exists.How to do this?

A: 

You can easily use asp.net fileupload control: Uploading files in asp.net using C#

sangam
+1  A: 

Use FileUpload Control and write code like

FileUpload1.PostedFile.SaveAs("Path and Filename");
Anuraj
A: 

You can use ASP.NET file upload control which will handle this.You can mention where in your server you want to store it

Shyju