TLDR Web Dev · ARTICLES & TUTORIALS
7 BEST PRACTICES OF FILE UPLOAD WITH JAVASCRIPT
Summary from the TLDR Web Dev newsletter
When optimizing file uploads in JavaScript, devs should make sure to optimize images, set file boundaries for size and type, and use placeholder images like ThumbHash for faster loading. Even better would be to give users cropping tools, initiate their uploads before the send button is pressed, allow them to upload files in parallel, and slice large files into smaller chunks behind the scenes.