Closed wereHamster closed 13 years ago
Could you try to find the code that causes the error? S3 does not extract any extensions from content_type - I can't find the code that you mention.
I'm sorry. I'm still learning our codebase, and that particular method is indeed part of our application and not the s3 gem.
The problem is how you extract the file extension: content_type.split('/').last, which in this case returns 'jpeg; charset=ISO-8859-1'. Rails does not accept that as part of the url: ActionView::TemplateError "bad URI(is not URI?): /bucket/file.jpeg; charset=ISO-8859-1"