Developer404
Developer404

Reputation: 5962

How to upload pdf file into my own server?

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?

Upvotes: 0

Views: 1230

Answers (3)

Shyju
Shyju

Reputation: 218762

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

Upvotes: 0

Anuraj
Anuraj

Reputation: 19598

Use FileUpload Control and write code like

FileUpload1.PostedFile.SaveAs("Path and Filename");

Upvotes: 1

Sangam Uprety
Sangam Uprety

Reputation: 1482

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

Upvotes: 0

Related Questions