I’ve implemented image uploading and processing enough times to desire using a service to handle it for me this time around. Enter Cloudinary, a service that appears to do just what I want: accept image uploads directly from client browsers bypassing my servers all together and serving the images up from a CDN.
This solution is as simple as it gets. There’s no progress tracking, retrying, or pre-upload-optimizations and it works perfectly for what I need.
If you do want progress updates you’ll need to define an
xhr.onprogress function. See Mozilla’s XMLHttpRequest.status documentation for more info.