将文件上载到asp.net中的ftp文件夹

时间:2021-07-09 03:43:30

After do some research I have come up relatively empty on this subject. What I am trying to do is basically upload a file (.jpeg) from an asp.net page when a user hits an upload button to our companys public website. The files are stored in a folder on the ftp site.

在做了一些调查之后,我对这个问题的看法比较空洞。我想做的是,当用户点击上传按钮到我们公司的公共网站时,从asp.net页面上传一个文件(.jpeg)。文件存储在ftp站点的文件夹中。

Can someone point me in the right direction to get started on this? I have the ftp credentials and I can logon and see the actual folder I need to upload too, I just need some direction. I have never worked with ftp through asp.net before.

有人能给我指出正确的方向来开始这件事吗?我有ftp凭证,我可以登录并看到我需要上传的实际文件夹,我只需要一些方向。我以前从未通过asp.net使用ftp。

Thanks!

谢谢!

1 个解决方案

#1


2  

The upload should be possible with FtpWebRequest class.

在FtpWebRequest类上,上传应该是可能的。

Usage details and examples of the FtpWebRequest class is available at: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx

FtpWebRequest类的使用细节和示例可从http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx获得

Also check whether the following site is useful: http://nethelp.wikidot.com/ftpupload

还要检查以下站点是否有用:http://nethelp.wikidot.com/ftpupload

#1


2  

The upload should be possible with FtpWebRequest class.

在FtpWebRequest类上,上传应该是可能的。

Usage details and examples of the FtpWebRequest class is available at: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx

FtpWebRequest类的使用细节和示例可从http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx获得

Also check whether the following site is useful: http://nethelp.wikidot.com/ftpupload

还要检查以下站点是否有用:http://nethelp.wikidot.com/ftpupload