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 |
---|---|---|
.. | ||
io_adapters | Loading commit data... | |
locales | Loading commit data... | |
matchers | Loading commit data... | |
storage | Loading commit data... | |
validators | Loading commit data... | |
.DS_Store | Loading commit data... | |
attachment.rb | Loading commit data... | |
attachment_options.rb | Loading commit data... | |
callbacks.rb | Loading commit data... | |
errors.rb | Loading commit data... | |
geometry.rb | Loading commit data... | |
glue.rb | Loading commit data... | |
helpers.rb | Loading commit data... | |
instance_methods.rb | Loading commit data... | |
interpolations.rb | Loading commit data... | |
logger.rb | Loading commit data... | |
matchers.rb | Loading commit data... | |
missing_attachment_styles.rb | Loading commit data... | |
processor.rb | Loading commit data... | |
railtie.rb | Loading commit data... | |
schema.rb | Loading commit data... | |
storage.rb | Loading commit data... | |
style.rb | Loading commit data... | |
tempfile.rb | Loading commit data... | |
thumbnail.rb | Loading commit data... | |
url_generator.rb | Loading commit data... | |
validators.rb | Loading commit data... | |
version.rb | Loading commit data... |