Mission Accomplished
We've made it to the end of the project. At this point we should have an uploader plugin that is easy to use and provides rich features in supporting browsers such as multiple files, file information, an editable upload list, and upload progress reports.
Tip
Not all browsers are able to use the features that this widget is built to exploit. The Opera browser for example, sees programmatically triggering the file dialog box as a security risk and so does not allow it.
Also, legacy versions of Internet Explorer (anything prior to version 10) will not be able to handle this code at all.
Supporting incompatible or legacy browsers is beyond the scope of this example, but it would be relatively straight forward to add a fallback that made use of some other technology, such as Flash, in order to provide support for some of the behavior our plugin demonstrates.
Or there are a range of older jQuery plugins that make use of <iframe>
elements to simulate uploading files via AJAX...