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
On a new Rails 5.0 app, I'm getting the following error after uploading the images:
DRAGONFLY: couldn't json decode string - got 743: unexpected token at 'i٢'
My dragonfly initializer looks like this:
require 'dragonfly' # Configure Dragonfly.app.configure do plugin :imagemagick secret "snip" datastore :file, root_path: Rails.root.join('tmp', Rails.env), server_root: Rails.root.join('public') if Rails.env == 'development' datastore :s3, bucket_name: 'some-bucket', root_path: "some-path/#{Rails.env}", use_iam_profile: true unless Rails.env == 'development' end # Logger Dragonfly.logger = Rails.logger # Mount as middleware Rails.application.middleware.use Dragonfly::Middleware # Add model functionality if defined?(ActiveRecord::Base) ActiveRecord::Base.extend Dragonfly::Model ActiveRecord::Base.extend Dragonfly::Model::Validations end
Commenting out middleware line fixes the error.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On a new Rails 5.0 app, I'm getting the following error after uploading the images:
My dragonfly initializer looks like this:
Commenting out middleware line fixes the error.
The text was updated successfully, but these errors were encountered: