Content
View differences
Updated by Markus Kahl over 8 years ago
**As** an OpenProject user
**I want** to be able to upload arbitrarily large files
**so that** I can share arbitrarily large files with other people.
Currently this does not work. Just uploading files around 100mb can result in a gateway timeout depending on how much bandwidth the user has.
A possible solution for our SaaS platform is to upload files directly to S3 which can handle any file size.
For reference: https://devcenter.heroku.com/articles/direct-to-s3-image-uploads-in-rails
Roughly this might work as follows:
- in APIv3’s work package form we generate a pre-signed S3 URL to post to for uploads
- the frontend posts the upload to that URL instead of the usual OpenProject URL
- we’d need a separate request to let OpenProject know that a file has been uploaded to S3
**I want** to be able to upload arbitrarily large files
**so that** I can share arbitrarily large files with other people.
Currently this does not work. Just uploading files around 100mb can result in a gateway timeout depending on how much bandwidth the user has.
A possible solution for our SaaS platform is to upload files directly to S3 which can handle any file size.
For reference: https://devcenter.heroku.com/articles/direct-to-s3-image-uploads-in-rails
Roughly this might work as follows:
- in APIv3’s work package form we generate a pre-signed S3 URL to post to for uploads
- the frontend posts the upload to that URL instead of the usual OpenProject URL
- we’d need a separate request to let OpenProject know that a file has been uploaded to S3