techtailor's avatar

Uploading Video Files in Background

Hey fellas,

So i got an app where a user can upload image/video files upto 100mb which I am storing on S3, however my current setup doesn't seem ideal as the user has to wait after uploading the file for it to be uploaded to S3. Whats the best way I can do that in the background? Like once the uploading finishes the user is redirected to a processing page and the system in the background (without being interrupted by the user) uploads the data to S3.

Would appreciate any response.

Thanks.

0 likes
4 replies
martinbean's avatar

@techtailor The user needs to stay on the page to upload the video. You can upload it directly to S3, bypassing your application, but the user will still need to stay on that page until the upload completes (just like they would on YouTube or Vimeo or any other video uploading service).

Amazon has an example of using their JavaScript SDK to upload files to S3: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-photo-album-full.html

zokratez's avatar

@martinbean On Google Drive you can upload any file and continue navigating the site. This is possible thanks to SPA (Single Page Application). But none system resist an F5 on upload process.

Please or to participate in this conversation.