This should fix an error when the user has turn on AWS logging while and upload a file with non-English filename, as `aws-sdk` logger is not encoding aware. The problem was that the string returned from another logger methods is in `US-ASCII`, while the string returned from Paperclip would be in `UTF-8`. When the logger calls `#join` on those strings, Ruby would raise an exception. This solution is not the best, as it involves a monkey-patching, but should make sure that the upload goes through without any hiccup. For the long run, I'm going to send a patch to `aws-sdk` and also make Paperclip require at least `aws-sdk > 1.4.1`
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
fixtures | Loading commit data... | |
io_adapters | Loading commit data... | |
matchers | Loading commit data... | |
storage | Loading commit data... | |
support | Loading commit data... | |
validators | Loading commit data... | |
attachment_options_test.rb | Loading commit data... | |
attachment_test.rb | Loading commit data... | |
database.yml | Loading commit data... | |
generator_test.rb | Loading commit data... | |
geometry_test.rb | Loading commit data... | |
helper.rb | Loading commit data... | |
integration_test.rb | Loading commit data... | |
interpolations_test.rb | Loading commit data... | |
paperclip_missing_attachment_styles_test.rb | Loading commit data... | |
paperclip_test.rb | Loading commit data... | |
processor_test.rb | Loading commit data... | |
schema_test.rb | Loading commit data... | |
style_test.rb | Loading commit data... | |
thumbnail_test.rb | Loading commit data... | |
url_generator_test.rb | Loading commit data... | |
validators_test.rb | Loading commit data... |