Switch File Upload to ActiveStorage #2702
Labels
dependencies
Pull requests that update a dependency file
enhancement
ruby
Pull requests that update Ruby code
In the current context, every uploaded file is uploaded with CarrierWave, which has a few drawbacks:
Hence, we should replace CarrierWave with a proper ActiveStorage backend. ActiveStorage allows multiple backend (local file, S3, ...) and hence would address above issues. Further, it would allow a smooth migration in multiple steps (first switch to ActiveStorage, then change the ActiveStorage backend, ...)
When changing the upload, the following should be considered:
FilesController
forshow_protected_upload
(regular download)FilesController#render_protected_upload
)X-Accel-Redirect
:codeocean/config/environments/production.rb
Line 48 in e86bf64
CodeOcean::File
) and the native_file attributeThe text was updated successfully, but these errors were encountered: