We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http://beta.url2png.com/v4/P4FCD34DF0E055/229204fabd822ab0cd2593b8841e6013/t800x600/http://maps.google.com/maps?q=Rio+de+Janeiro%2C+Brazil
This url works fine in browser, but fails in Carrierwave. Media::Image.new(remote_file_url:"http://beta.url2png.com/v4/P4FCD34DF0E055/229204fabd822ab0cd2593b8841e6013/t800x600/http://maps.google.com/maps?q=Rio+de+Janeiro%2C+Brazil")
The text was updated successfully, but these errors were encountered:
You need to override this method to meet your needs for handling special characters in the URL: https://github.com/jnicklas/carrierwave/blob/master/lib/carrierwave/uploader/download.rb#L72
Sorry, something went wrong.
In case someone has the same problem, put these codes in the carrierwave initializer.rb
CarrierWave::Uploader::Download.module_eval do def process_uri(uri) begin URI.parse(uri) rescue URI.parse(URI.escape(URI.unescape(uri))) end end
No branches or pull requests
http://beta.url2png.com/v4/P4FCD34DF0E055/229204fabd822ab0cd2593b8841e6013/t800x600/http://maps.google.com/maps?q=Rio+de+Janeiro%2C+Brazil
This url works fine in browser, but fails in Carrierwave.
Media::Image.new(remote_file_url:"http://beta.url2png.com/v4/P4FCD34DF0E055/229204fabd822ab0cd2593b8841e6013/t800x600/http://maps.google.com/maps?q=Rio+de+Janeiro%2C+Brazil")
The text was updated successfully, but these errors were encountered: