At SleepHQ we upload a lot of data. Recently we made a change when importing large files that improves the performance and reliability. We now import large files in smaller chunks that are reassembled on the server after the upload.
In this video I show you how it's implemented using dropzone.js and Rails' ActiveStorage.