Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Image and file upload and display #8

Open
6 tasks
Steven-Chan opened this issue Aug 17, 2022 · 2 comments
Open
6 tasks

Image and file upload and display #8

Steven-Chan opened this issue Aug 17, 2022 · 2 comments
Assignees

Comments

@Steven-Chan
Copy link
Contributor

Steven-Chan commented Aug 17, 2022

  • file system
  • cloud storage
    • s3

  • handle any file type upload
  • handle specific file type upload
  • handle image upload with inline preview in detail page
@Steven-Chan
Copy link
Contributor Author

Please explore how to configure django and django-storage to work with presigned url upload, or do we need another libraries to do that.

Steven-Chan added a commit that referenced this issue Sep 30, 2022
@Rubikium
Copy link
Contributor

There is a library django-s3direct for pre-signed url upload to S3 storage, but the library code doesn't allow for easy integration with our existing framework. I have made a somewhat functioning version at my expt-s3-direct-upload branch, but:

  • Material UI cannot easily be applied since the js code assumes the HTML elements in the widget template to be in a specific structure
  • The initialization js code needs to be change to accommodate for Turbolinks page navigations. This has been done, but the original minified js code could make future maintenance of the additional code difficult

For the purpose of the project, I suggest to exclude the pre-signed url upload feature, since Django and django-storage doesn't support this, and the effort needed for implementing this using django-s3direct is far greater than what we would expect for a demo for others to reference.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants