FileUpload类和FTP用户 [英] FileUpload class and FTP User

查看:63
本文介绍了FileUpload类和FTP用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的.NET专家,

我查看了文件上传类的定义(https://docs.microsoft.com/en-us/dotnet/ api / system.web.ui.webcontrols.fileupload?view = netframework-4.7.2)并且现在想知道,

I have looked at the definition for the file upload class (https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.fileupload?view=netframework-4.7.2) and wonder now,

我在哪里放置用户信息(ftp)路径目录的权限?

where do I put the user information for the user (ftp) that has the right to the path directory?

推荐答案

该类是IMG type = file HTML标签的服务器端实现(实际上,你' ll将它用作asp:FileUpload标签,但无论如何都是无关紧要的) 并且与FTP上传无关。

That class is the server side implementation of IMG type=file HTML tag (actually, you'll use it as asp:FileUpload tag, but this is irrelevent anyway) and have nothing to do with FTP uploading.

你可以使用

FtpWebRequest
类.Method设置为
UploadFile
,但由于它只提供基本的FTP功能,您可能希望以后切换到第三方库。 / p>





You can probably use FtpWebRequest class with .Method set to UploadFile, but since it only provides basic FTP functions you may want to switch to 3rd party library later.


这篇关于FileUpload类和FTP用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆