简体   繁体   English

在Silverlight中将文件上传到ftp

[英]Upload file to ftp in silverlight

Im new to silverlight and i want the procedure of how to upload file on ftp in silverlight 4 application, Im using C#. 我是Silverlight的新手,我想要在Silverlight 4应用程序中使用C#在ftp上上传文件的过程。 So far i know that there are two procedure of doing this one is web client object and other is HttpWebRequest but i want to know if it is possible to upload a file to ftp server and how to do this? 到目前为止,我知道执行此操作的过程有两个,一个是Web客户端对象,另一个是HttpWebRequest,但是我想知道是否可以将文件上传到ftp服务器以及如何执行此操作?

FTP is not supported in Silverlight however you could try to upload via http. Silverlight不支持FTP,但是您可以尝试通过http上传。

Check: Silverlight Ftp Upload 检查: Silverlight Ftp上传

Ftp is now possible with Silverlight 5, as the port-range got a boost (by ClientAccessPolicy.xml ) and an elevated-trust in-browser mode is available. 现在,借助Silverlight 5可以进行Ftp,因为端口范围得到了提升(通过ClientAccessPolicy.xml ),并且可以使用增强信任的浏览器内模式。

I've created sharpLightFtp to enable rudimental Ftp. 我创建了sharpLightFtp以启用基本的Ftp。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM