Giter Site home page Giter Site logo

Comments (3)

sorentwo avatar sorentwo commented on July 28, 2024

The commit this ticket is pointing to doesn't seem to exist anymore, and as this issue has persisted it doesn't seem like it was ever merged anyhow. I've added some shortcut content_type matchers and changed s3 storage to read content type when it stores, rather than reading the original instance's content type.

This:

:content_type => file.content_type.to_s.strip

Instead of this:

:content_type => instance_read(:content_type)

The patch and tests are in my branch: http://github.com/sorentwo/paperclip

See these commits:
http://github.com/sorentwo/paperclip/commit/a886e76716907bf0b4746efd346a0615f36f97f9
http://github.com/sorentwo/paperclip/commit/3cc0006cfa9a4ea83edbc75a0ca71a6a1073941b

from paperclip.

momolog avatar momolog commented on July 28, 2024

This really ought to get merged to the trunk soon.
There is no use in having a pluggable processor scheme, if the resulting files are all getting served with the content type of the original file.

from paperclip.

sikachu avatar sikachu commented on July 28, 2024

@sorentwo I've merged two of your commits into one single commit, and all the test pass. Thank you for your contribution :)

from paperclip.

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.