Upload / Download Files in ASP.NET

Ok, I'm a real newbie to an ASP file ... I have two related questions:

What are my options for controls that I can dynamically add to my web page to allow the user to upload large files> 100 MB to the server?

What are my options for controls to start downloading a large file in a web browser using the Save As dialog box so the server can generate the file and send it to the user?

I've seen examples for FileUpload controls, HttpRequest / HttpResponse controls, FileWebRequest controls ... it has never been clear if the examples are for Windows apps that scrape websites, or client-side scripts bound to buttons, or server code that acts on reverse gear. I guess I'm looking for the last ... something that I could write in the server code to trigger an interaction.

If anyone knows where I can find a clear tutorial, it will also be appriciated.

+3
source share
2 answers

ASP.Net 4 . Web.Config .   .

<httpRuntime
 executionTimeout="110"
 maxRequestLength="4096"
 requestLengthDiskThreshold="80"
 useFullyQualifiedRedirectUrl="false"
 minFreeThreads="8"
 minLocalRequestFreeThreads="4"
 appRequestQueueLimit="5000"
 enableKernelOutputCache="true"
 enableVersionHeader="true"
 requireRootedSaveAsPath="true"
 enable="true"
 shutdownTimeout="90"
 delayNotificationTimeout="5"
 waitChangeNotification="0"
 maxWaitChangeNotification="0"
 enableHeaderChecking="true"
 sendCacheControlHeader="true"
 apartmentThreading="false" />

, maxRequestLength , KB. - 4096 (4 ).

100 , maxRequestLength = "102400"

Web.Config.

http://programming.top54u.com/post/ASP-Net-FileUpload-Size-Limit-Example.aspx

+6

ASP.NET FileUpload. , FTP.

0

Source: https://habr.com/ru/post/1730978/


All Articles