This PR implements using a FileField to store covers in Amazon S3. When a book is sent to the /books/post endpoint, the web server downloads the cover image from the book's Github repo (using the _repo and covers properties in the YAML), and then uploads it to the S3 bucket in the bookcovers directory, storing it in the database in a FileField.
Included in this PR is a database migration to create the FileField.
This PR implements using a FileField to store covers in Amazon S3. When a book is sent to the
/books/post
endpoint, the web server downloads the cover image from the book's Github repo (using the_repo
andcovers
properties in the YAML), and then uploads it to the S3 bucket in thebookcovers
directory, storing it in the database in aFileField
. Included in this PR is a database migration to create theFileField
.