Permalink
Browse files

sigh. i am not positive about the correct default config...

  • Loading branch information...
1 parent e507f0c commit fa3829d1ada2c3888d91aa083618adc4b8c5a7d3 @ahoward ahoward committed Jul 24, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/carrierwave/mongoid.rb
@@ -80,7 +80,12 @@ class CarrierWave::Uploader::Base
configure do |config|
config.storage_engines[:grid_fs] = "CarrierWave::Storage::GridFS"
- config.grid_fs_access_url = "/system/uploads"
+
+ config.grid_fs_access_url = "/"
+
+ if defined?(Rails.root)
+ config.cache_dir = "#{ Rails.root }/public/system/uploads/tmp"
+ end
end
end

3 comments on commit fa3829d

@nofxx
nofxx commented on fa3829d Jul 27, 2012

Bad things are happening...guess this commit started it hehe
Permission denied - /public

Need to set config.cache_dir on each Uploader.
Should behave like this?

@volmer
Contributor
volmer commented on fa3829d Jul 27, 2012

Same problem here o/

@ahoward
Contributor

bout to issue a pull request which should fix this based on: ahoward@6aa3cd9

Please sign in to comment.