Skip to content

Added support of the 'location' parameter for Boto3 storage #229

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivanchenkodmitry
Copy link

@ivanchenkodmitry ivanchenkodmitry commented May 27, 2021

Django S3Boto3Storage provides ability to set the 'location' property which means prefix for all uploads.
In this case the path of the uploaded file will be stored in DB without the prefix and it will be added on each request to the file through the storage.
https://github.com/jschneier/django-storages/blob/master/storages/backends/s3boto3.py#L420

The current implementation of the django-s3-file-field does not support this parameter.

This commit should fix that.

@ivanchenkodmitry
Copy link
Author

Hello @kwrobot!
Can someone review these changes please. This small feature is very important for my project.

Thank you!

@brianhelba
Copy link
Contributor

Hi @ivanchenkodmitry
Yes, I can take a look. Thanks for the contribution!

@ivanchenkodmitry
Copy link
Author

Hi @ivanchenkodmitry
Yes, I can take a look. Thanks for the contribution!

Hi @brianhelba
Any updates on that?

@ivanchenkodmitry
Copy link
Author

hi @brianhelba !

Can you please check the pull request? this is a very minor thing it should not break enything

Thank you.

@ivanchenkodmitry
Copy link
Author

Hi @brianhelba !

Just want to follow up with this pull request.
I have updated my message with the new link for an explanation of the changes.
Can you please check is everything fine?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

2 participants