开发者

How to upload pdf file into my own server?

开发者 https://www.devze.com 2022-12-12 10:58 出处:网络
In my site, user want toupload 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 fil开发者_如何学Goe to be copied into my server where the pu

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 fil开发者_如何学Goe to be copied into my server where the published file of the site exists.How to do this?


Use FileUpload Control and write code like

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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消