Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store and use original file names #10

Open
7 tasks
oliverroick opened this issue Sep 12, 2016 · 0 comments
Open
7 tasks

Store and use original file names #10

oliverroick opened this issue Sep 12, 2016 · 0 comments

Comments

@oliverroick
Copy link
Member

Instead of the random file names, which are created for each uploaded file, django-buckets should use the original name of the uploaded files. We will have to introduce a model to store this information, which will replace S3FileField.

  • Introduce model with to fields, the file url inside the S3 bucket and the original file name.
  • Add a hidden field for original URL to the widget
  • Adapt the client-side upload script
    • Read the file's name and write it to the hidden field
    • Display this name as the link text
    • Add download attribute to link
  • Display original file name in widget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant