I have to admit that I'm not very experienced with web development. Today I had to implement an AJAX file upload in an AngularJS. It is a single page application, so there should be no page refresh. It also should work with the major browsers (including IE8) and should be not restrict possible designs.
In the end I found angular-file-upload, which seems to work, but it took longer that I expected. Also I'm not sure whether there is a simpler solution that I have overlooked.
I was surprised that there are a variety of solutions to the problem (the most recent ones seem to rely on FormData, as in this SO answer, requiring IE >= 10). There are also a lot of fallbacks for older browsers (including iframes and flash).
Because of the rapid development in the last years, I wonder:
- Is there meanwhile an established standard to implement non-reloading AJAX file uploads?
- If not, what techniques are still relevant and what should now be avoided?
- Assuming you need only to support bleeding edge browsers: What solution do you consider the most elegant? (In other words, what might become the recommended solution in the next years?)