0
+ # The default place to store attachments is in the filesystem. Files on the local
0
+ # filesystem can be very easily served by Apache without requiring a hit to your app.
0
+ # They also can be processed more easily after they've been saved, as they're just
0
+ # normal files. There is one Filesystem-specific option for has_attached_file.
0
+ # * +path+: The location of the repository of attachments on disk. This can (and, in
0
+ # almost all cases, should) be coordinated with the value of the +url+ option to
0
+ # allow files to be saved into a place where Apache can serve them without
0
+ # hitting your app. Defaults to
0
+ # ":rails_root/public/:class/:attachment/:id/:style_:filename".
0
+ # By default this places the files in the app's public directory which can be served
0
+ # directly. If you are using capistrano for deployment, a good idea would be to
0
+ # make a symlink to the capistrano-created system directory from inside your app's
0
+ # See Paperclip::Attachment#interpolate for more information on variable interpolaton.
0
+ # :path => "/var/app/attachments/:class/:id/:style/:filename"
0
+ # Amazon's S3 file hosting service is a scalable, easy place to store files for
0
+ # distribution. You can find out more about it at http://aws.amazon.com/s3
0
+ # There are a few S3-specific options for has_attached_file:
0
+ # * +s3_credentials+: Takes a path, a File, or a Hash. The path (or File) must point
0
+ # to a YAML file containing the +access_key_id+ and +secret_access_key+ that Amazon
0
+ # gives you. You can 'environment-space' this just like you do to your
0
+ # database.yml file, so different environments can use different accounts:
0
+ # access_key_id: 123...
0
+ # secret_access_key: 123...
0
+ # access_key_id: abc...
0
+ # secret_access_key: abc...
0
+ # access_key_id: 456...
0
+ # secret_access_key: 456...
0
+ # This is not required, however, and the file may simply look like this:
0
+ # access_key_id: 456...
0
+ # secret_access_key: 456...
0
+ # In which case, those access keys will be used in all environments.
0
+ # * +s3_permissions+: This is a String that should be one of the "canned" access
0
+ # policies that S3 provides (more information can be found here:
0
+ # http://docs.amazonwebservices.com/AmazonS3/2006-03-01/RESTAccessPolicy.html#RESTCannedAccessPolicies)
0
+ # The default for Paperclip is "public-read".
0
+ # * +bucket+: This is the name of the S3 bucket that will store your files. Remember
0
+ # that the bucket must be unique across all of Amazon S3. If the bucket does not exist
0
+ # Paperclip will attempt to create it. The bucket name will not be interpolated.
0
+ # * +path+: This is the key under the bucket in which the file will be stored. The
0
+ # URL will be constructed from the bucket and the path. This is what you will want
0
+ # to interpolate. Keys should be unique, like filenames, and despite the fact that
0
+ # S3 (strictly speaking) does not support directories, you can still use a / to
0
+ # separate parts of your file name.
Comments
No one has commented yet.