| Module | Paperclip::Storage::Filesystem |
| In: |
lib/paperclip/storage.rb
|
The default place to store attachments is in the filesystem. Files on the local filesystem can be very easily served by Apache without requiring a hit to your app. They also can be processed more easily after they‘ve been saved, as they‘re just normal files. There is one Filesystem-specific option for has_attached_file.
:path => "/var/app/attachments/:class/:id/:style/:filename"
# File lib/paperclip/storage.rb, line 23
23: def exists?(style = default_style)
24: if original_filename
25: File.exist?(path(style))
26: else
27: false
28: end
29: end