<p>Basically, something better than this:</p>

<pre><code>&lt;input type="file" name="myfile" size="50"&gt;
</code></pre>

<p>First of all, the <code>browse</code> button looks different on every browser.  Unlike the <code>submit</code> button on a form, you have to come up with some <a href="http://www.quirksmode.org/dom/inputfile.html" rel="nofollow noreferrer">hack-y</a> way to style it.</p>

<p>Secondly, there's no progress indicator showing you how much of the file has uploaded.  You usually have to implement some kind of client-side way to disable multiple submits (e.g. change the submit button to a disabled button showing "Form submitting... please wait.") or flash a giant warning.</p>

<p>Are there any good solutions to this that don't use Flash or Java?</p>

<p><a href="https://stackoverflow.com/questions/11974/what-is-the-best-way-to-upload-a-file-via-an-http-post-with-a-web-form#12005">Yaakov</a>: That product looks to be exactly what I'm looking for, but the cost is $1000 and its specifically for <code>ASP.NET.</code>  Are there any open source projects that cover the same or similar functionality?</p>

[{'answer_id': 12005, 'author': 'Yaakov Ellis', 'author_id': 51, 'author_profile': 'https://Stackoverflow.com/users/51', 'pm_score': 0, 'selected': False, 'text': '<p>It is true, the file upload control is definitely behind the times. Hopefully this will be addressed in a future asp.net version.</p>\n\n<p>Though it costs some money, I have found the <a href="http://www.telerik.com/products/aspnet-ajax/controls/upload/overview.aspx" rel="nofollow noreferrer">Telerik upload control</a> to have all of the functionality that you are looking for, including styling and progress updates (it also optimizes memory for large uploads).</p>\n'}, {'answer_id': 12057, 'author': 'Grey Panther', 'author_id': 1265, 'author_profile': 'https://Stackoverflow.com/users/1265', 'pm_score': 4, 'selected': True, 'text': '<p>File upload boxes is where we\'re currently at if you don\'t want to involve other technologies like Flash, Java or ActiveX.</p>\n\n<p>With plain HTML you are pretty much limited to the experience you\'ve described (no progress bar, double submits, etc). If you are willing to use some javascript, you can solve some of the problems by giving feedback that the upload is in progress and even <a href="http://www.raditha.com/php/progress.php" rel="noreferrer">showing the upload progress</a> (it is a hack because you shouldn\'t have to do a full round-trip to the server and back, but at least it works).</p>\n\n<p>If you are willing to use Flash (which is available pretty much anywhere and on many platforms), you can overcome pretty much all of these problems. A quick googling turned up <a href="http://www.downloadsquad.com/2006/11/16/swfupload-open-source-flash-multi-file-upload/" rel="noreferrer">two</a> <a href="http://www.codeproject.com/KB/aspnet/FlashUpload.aspx" rel="noreferrer">such</a> components, both of them free <em>and</em> open source. I never used any of them, but they look good. BTW, Flash isn\'t without its problems either, for example when using the multi-file uploader for slide share, the browser kept constantly crashing on me :-(</p>\n\n<p>Probably the best solution currently is to detect dynamically if the user has Flash, and if it\'s the case, give her the flash version of the uploader, while still making it possible to choose the basic HTML one.</p>\n\n<p>HTH</p>\n'}, {'answer_id': 12058, 'author': 'DylanJ', 'author_id': 87, 'author_profile': 'https://Stackoverflow.com/users/87', 'pm_score': 1, 'selected': False, 'text': '<p>You could have a look at the <a href="http://digitarald.de/project/fancyupload/" rel="nofollow noreferrer">Fancy Upload</a> script. Though it uses flash it still looks great.</p>\n'}, {'answer_id': 12087, 'author': 'Keith', 'author_id': 905, 'author_profile': 'https://Stackoverflow.com/users/905', 'pm_score': 1, 'selected': False, 'text': '<p>The problem here is that the browsers specifically work to block anything that changes the basic file upload input control.  You can\'t change it with javascript for instance.</p>\n\n<p>The reason is security - if I could script it I could build a page that when you visited it sent me various files from your hard disk.  Not nice.</p>\n\n<p>There are various workarounds at the moment, but they\'re different between IE and FX (I don\'t know about Safari, Opera, etc).</p>\n\n<p>Look at what <a href="http://www.gmail.com" rel="nofollow noreferrer">http://www.gmail.com</a> does in IE and FX when you attach something to an e-mail.</p>\n\n<p>I want to see that rubbish "Browse" button - it tells me that I\'m not letting anything unexpected in.</p>\n'}]
['https://Stackoverflow.com/questions/11974', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1396/']