I'm creating a web tool in ASP.NET(c#) which can upload images to different sites and one of the sites is not set-up in FTP. Is it possible to upload files in the that site(with credentials)? If it is, can you please enlighten me on the process?
我正在ASP.NET(c#)中创建一个Web工具,它可以将图像上传到不同的站点,其中一个站点没有在FTP中设置。是否可以在该站点上传文件(使用凭据)?如果是的话,请你告诉我这个过程吗?
Thanks...
3 个解决方案
#1
2
You could look at creating an image admin page which uses the FileUpload control.
您可以查看创建使用FileUpload控件的图像管理页面。
#2
2
Take a look at the fileupload control. It allows the user to do exactly that.
看一下fileupload控件。它允许用户完全这样做。
#3
1
You can use the FileUpload control. But it will only allow upload data to the web server.
您可以使用FileUpload控件。但它只允许上传数据到Web服务器。
But if you need to save file to a different server, you will probably need handle the POST
request.
但是,如果您需要将文件保存到其他服务器,则可能需要处理POST请求。
I think this article about Writing Server-Side Upload Code may help you.
我认为这篇关于编写服务器端上传代码的文章可能会对您有所帮助。
#1
2
You could look at creating an image admin page which uses the FileUpload control.
您可以查看创建使用FileUpload控件的图像管理页面。
#2
2
Take a look at the fileupload control. It allows the user to do exactly that.
看一下fileupload控件。它允许用户完全这样做。
#3
1
You can use the FileUpload control. But it will only allow upload data to the web server.
您可以使用FileUpload控件。但它只允许上传数据到Web服务器。
But if you need to save file to a different server, you will probably need handle the POST
request.
但是,如果您需要将文件保存到其他服务器,则可能需要处理POST请求。
I think this article about Writing Server-Side Upload Code may help you.
我认为这篇关于编写服务器端上传代码的文章可能会对您有所帮助。