0

Hi,

I am making an online page for a company so that users can upload and download files from the company's server. Now, as every ASP .NET developer knows, the ASP .NET framework includes a file upload control for users to upload files to the server.

The problem with this is that this control uses HTTP and is very slow and can not handle large file sizes.

I need to have file upload implemented with FTP. I have looked into it and from what I have seen people use the FTP classes in .NET to transfer files from one server to another, not from a user to the server through a web page.

Does anyone know of a solution using the framework for uploading to the server with FTP?

Any help is greatly appreciated.

4
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by vglass
0

You can increase the size that you can upload by adding/modifying the httpRuntime element under system.web in web.config.

Example:

<httpRuntime maxRequestLength="20000" executionTimeout="900" />

This will allow request streams of 20000 KB (to support large uploads) and bump the timeout of a page up to 900 seconds.

0

Unfortunately this still is not an acceptable solution. I've already done this but it still times out for large files ~> 50 MB. It must be done with FTP.

0

Thanks, I'll check those out.

Edited by drspock: n/a

0

Hi,

I am making an online page for a company so that users can upload and download files from the company's server. Now, as every ASP .NET developer knows, the ASP .NET framework includes a file upload control for users to upload files to the server.

The problem with this is that this control uses HTTP and is very slow and can not handle large file sizes.

I need to have file upload implemented with FTP. I have looked into it and from what I have seen people use the FTP classes in .NET to transfer files from one server to another, not from a user to the server through a web page.

Does anyone know of a solution using the framework for uploading to the server with FTP?

Any help is greatly appreciated.

It sounds like you are trying to pull files from client via FTP and have them placed on the server ... is this correct? If so this is not possible. All file transfers must be initiated by the client, not the server.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.