Git Product home page Git Product logo

Comments (5)

sorentwo avatar sorentwo commented on June 11, 2024

You'll need to change storage :fog to storage :aws so that it chooses the correct storage provider. Internally all of the privacy, expiration and other options work the same way, but you do need to specify :aws instead.

Note that the configuration options will be different if you have things set up for fog. You'll need to change anything prefixed with "fog" into "aws", such as aws_bucket, aws_acl, aws_authenticated_url_expiration, aws_credentials

from carrierwave-aws.

lbain avatar lbain commented on June 11, 2024

Hi @sorentwo! Thanks for the quick reply. I made that change (which completely makes sense, just wasn't sure how much it was basing itself on fog), but still have the error I was getting from fog:

NoMethodError (undefined method `original_filename' for #<CarrierWave::Storage::AWS::File:0x007fcebacf7868>)

I wrote an issue for Fog earlier today about the original_filename issue
fog/fog#1756

Any ideas how to deal with this on carrierwave-aws?

from carrierwave-aws.

sorentwo avatar sorentwo commented on June 11, 2024

Do you happen to be using CarrierWave::MimeTypes in the uploader that is causing this? It seems to be the only place where original_filename is called unguarded within the CarrierWave source.

I'm curious what your application's flow is. We are using carrierwave-aws with mime type processing in all of our uploaders and haven't had that error at all.

from carrierwave-aws.

geemus avatar geemus commented on June 11, 2024

@sorentwo - It looks to me like the actual issue may be in gzigzigzeo/carrierwave-meta. See also: gzigzigzeo/carrierwave-meta#4 (comment)

from carrierwave-aws.

sorentwo avatar sorentwo commented on June 11, 2024

Thanks @geemus, that is almost certainly the culprit here. @lbain - I am going to close this as it was in regard to configuration and your underlying issue isn't related to carrierwave-aws.

from carrierwave-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.