Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
308f1a0f
Commit
308f1a0f
authored
Dec 14, 2011
by
John Joseph Bachir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
documentation for including aws-sdk in Gemfile
parent
adcd03c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
README.md
+8
-3
lib/paperclip/storage/s3.rb
+3
-0
No files found.
README.md
View file @
308f1a0f
...
@@ -164,9 +164,14 @@ file at
...
@@ -164,9 +164,14 @@ file at
_
**NOTE**
: This is a change from previous versions of Paperclip, but is overall a
_
**NOTE**
: This is a change from previous versions of Paperclip, but is overall a
safer choice for the default file store._
safer choice for the default file store._
You may also choose to store your files using Amazon's S3 service. You can find
You may also choose to store your files using Amazon's S3 service. To do so, include
more information about S3 storage at the description for
the
`aws-sdk`
gem in your Gemfile:
[
`Paperclip::Storage::S3`
](
http://rubydoc.info/gems/paperclip/Paperclip/Storage/S3
)
.
gem 'aws-sdk'
And then you can specify using S3 from
`has_attached_file`
.
You can find more information about configuring and using S3 storage in
[
the `Paperclip::Storage::S3` documentation
](
http://rubydoc.info/gems/paperclip/Paperclip/Storage/S3
)
.
Files on the local filesystem (and in the Rails app's public directory) will be
Files on the local filesystem (and in the Rails app's public directory) will be
available to the internet at large. If you require access control, it's
available to the internet at large. If you require access control, it's
...
...
lib/paperclip/storage/s3.rb
View file @
308f1a0f
...
@@ -2,6 +2,9 @@ module Paperclip
...
@@ -2,6 +2,9 @@ module Paperclip
module
Storage
module
Storage
# Amazon's S3 file hosting service is a scalable, easy place to store files for
# Amazon's S3 file hosting service is a scalable, easy place to store files for
# distribution. You can find out more about it at http://aws.amazon.com/s3
# distribution. You can find out more about it at http://aws.amazon.com/s3
#
# To use Paperclip with S3, include the +aws-sdk+ gem in your Gemfile:
# gem 'aws-sdk'
# There are a few S3-specific options for has_attached_file:
# There are a few S3-specific options for has_attached_file:
# * +s3_credentials+: Takes a path, a File, or a Hash. The path (or File) must point
# * +s3_credentials+: Takes a path, a File, or a Hash. The path (or File) must point
# to a YAML file containing the +access_key_id+ and +secret_access_key+ that Amazon
# to a YAML file containing the +access_key_id+ and +secret_access_key+ that Amazon
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment