Comments (4)
This is expected behaviour, since the AWS_S3_PUBLIC_URL setting is there to serve content through a CDN. Since CDNs are pretty public, that's what you want.
However, I can see your use case, which seems valid. Unfortunately, I can't change this behaviour without breaking all current library users, since AWS_S3_BUCKET_AUTH defaults to True. Making AWS_S3_PUBLIC_URL respect AWS_S3_BUCKET_AUTH would switch all existing users over to bucket auth.
This is complicated by #114
I've just got back from holiday, so can't really devote any time right now to figuring out an optimal soution as I've a million work emails. Suggestions welcome. Or I'll take a look myself in a few weeks. Meanwhile, your solution seems perfectly fine.
from django-s3-storage.
We have the same problem out here, it would be really nice to have a fix for this.
from django-s3-storage.
Related Issues (20)
- How to delete record which used django-s3-storge HOT 3
- I am defined AWS_S3_ENDPOINT_URL in settings but still use default S3 endpoint url HOT 2
- if I am using rotated s3 credentials how do I setup credentials HOT 2
- Is there a way to get upload progress? HOT 4
- support for large file upload HOT 2
- Setting similar to `AWS_S3_KEY_PREFIX` but instead prepend a dynamic param for each model's files HOT 2
- Caching with pre-signed url HOT 7
- sha1 or other hash before upload? HOT 6
- Public-read buckets and AWS_S3_BUCKET_AUTH HOT 4
- File is closed after s3 upload HOT 9
- Incompatibility issues with Django>=4.0 HOT 1
- Issue when upgrading to version 0.13.5 or higher HOT 4
- Huge Thanks HOT 2
- Update settings to define multiple S3 buckets HOT 1
- Document the `AWS_S3_MAX_POOL_CONNECTIONS` setting HOT 1
- Issues configuring AWS_S3_ENDPOINT_URL HOT 2
- Use Django's system check framework instead of log message HOT 1
- s3 bucket names being stored directly in migrations HOT 5
- Cannot open files in plain text mode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-s3-storage.