What is the best way to upload a file via HTTP POST using a web form?

Basically, something is better than this:

<input type="file" name="myfile" size="50">

Firstly, the button browselooks different in every browser. Unlike a button submitin a form, you have to come up with a hack-y way to style it.

Secondly, the progress indicator does not show how many files are downloaded. Usually you need to implement some kind of client-side way to disable multiple submissions (for example, change the submit button to a disabled button showing "Form submission ... wait.") Or run a giant warning.

Are there any good solutions for this that don't use Flash or Java?

Yaakov : this product looks exactly what I'm looking for, but the cost is $ 1,000 and it is especially for ASP.NET.Are there any open source projects that cover the same or similar functionality?

+5
source share
4 answers

File upload boxes are where we are right now if you don’t want to use other technologies like Flash, Java or ActiveX.

HTML ( , ..). javascript, , , , ( , , , , ).

Flash ( ), . googling , . , . BTW, Flash , , -share, : - (

, , Flash, , - , HTML-.

+9

Fancy Upload script. flash, - .

+1

, , , . javascript, .

- script, , , , . .

, IE FX ( Safari, Opera ..).

, http://www.gmail.com IE FX, - .

"" - ​​ , .

+1

True, the control of downloading files is definitely at a time. Hopefully this will be covered in a future version of asp.net.

Although it costs money, I found Telerik's boot control to have all the functionality you are looking for, including style and progress updates (it also optimizes memory for large downloads).

0
source

All Articles