Rebased #2120 to master. Paperclip duplicates the original files quite a lot as part of its validation process. (#1642, #1326). When uploading large files (several hundred megabytes to gigabyte range), this becomes a problem: The web server will be busy creating 3 - 4 duplicates on disk, while the app (and potentially the user) are waiting for the upload operation to complete. This pull request introduces hard links instead of ```FileUtil.cp``` where possible to keep the logic as-is but save time and disk space.
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
abstract_adapter.rb | Loading commit data... | |
attachment_adapter.rb | Loading commit data... | |
data_uri_adapter.rb | Loading commit data... | |
empty_string_adapter.rb | Loading commit data... | |
file_adapter.rb | Loading commit data... | |
http_url_proxy_adapter.rb | Loading commit data... | |
identity_adapter.rb | Loading commit data... | |
nil_adapter.rb | Loading commit data... | |
registry.rb | Loading commit data... | |
stringio_adapter.rb | Loading commit data... | |
uploaded_file_adapter.rb | Loading commit data... | |
uri_adapter.rb | Loading commit data... |