ionicsoft / vidon

A student project to create a video on demand web service. Will only host public-access content.
0 stars 1 forks source link

How to upload files #9

Closed Wyvernix closed 5 years ago

Wyvernix commented 5 years ago

Issue:

Our project requires a method for uploading files. These files would primarily be video files uploaded by producers, but could be extended to include user avatars. In addition, we may require the uploading of content thumbnails, cover art, title art, as well as potentially actor portraits. Adding complexity to the issue, Heroku is intended for temporary instances, and does not retain the filesystem as dynos are changed.

Proposal:

The gem carrierwave provides features for uploading files to a project. It should also be possible to upload into a private directory in order to restrict user access. Other solutions for user access may also be possible. In addition, it may be possible to combine this with the fog gem in order to upload to dedicated hosting on another service like S3.

Resources:

Wyvernix commented 5 years ago

An alternative for carrierwave+fog is the aws-s3 gem for rails.

Resources:

Wyvernix commented 5 years ago

Another alternative is the Active Storage feature introduced into rails 5.2