Comments (3)
S3 doesn't have directories, only paths. This is something that's provided by carrierwave itself. You'll need to use a standard prefix for all of your uploaders by changing the "storage directory": https://github.com/carrierwaveuploader/carrierwave#changing-the-storage-directory
from carrierwave-aws.
@sorentwo right, but this way I need to change store_dir
and cache_dir
for all the uploaders. It would be nice to have a way to specify a common path, that will come before those.
Some cases I think this is useful:
- Having the same bucket for different services,
- Having the same bucket for different environments (testing, staging, production, etc)
from carrierwave-aws.
You can accomplish that with modules/includes within your application, at least that's how I've handled common prefixes in the past. Otherwise I suggest using separate buckets for each environment. It doesn't cost any more to have multiple buckets and you get easy environment based settings.
from carrierwave-aws.
Related Issues (20)
- Carrierwave / AWS S3 Upload Endpoints HOT 9
- move_options triggers undefined method `>=' for nil:NilClass HOT 6
- Image updates don't work when images with same name are reuploaded HOT 1
- Uploads fail HOT 2
- uploader fails, returns 400 Bad Request errors HOT 5
- Url returns nill for versions uploaded in background HOT 1
- Release new version for Carrierwave 2.1 HOT 2
- Configure with IAM Role HOT 4
- xlsx content-type is wrong HOT 3
- AWS SDK 2.0 is EOL HOT 10
- supports DigitalOcean Spaces? HOT 1
- Caching seems to not work HOT 1
- Could not read file contents in test environment HOT 2
- content-type octet-stream issue HOT 5
- Setting ACLs can be turned off
- Ready to CarrierWave 3.0? HOT 2
- Support for "path_style" OFFICIALLY with a flag for the s3 hosts that use MinIO, DigitalOceanSpaces, and other software that support S3 API but not the default S3 virtualhost bucket names in the URL HOT 2
- Updating a file where version has overridden `full_filename` fails HOT 1
- aws_attributes broken for ActiveSupport::OrderedOptions
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 carrierwave-aws.