Giter VIP home page Giter VIP logo

Comments (5)

smeevil avatar smeevil commented on June 22, 2024

Thank you for bringing the case insensitivity to the light. I've updated it to be case insensitive now.

Checking the file extension was more to make sure we are uploading something useful to Cloudinary, this should be replaced with a mime type check to make it less fickle and to remove the dependency of an extension. @manukall maybe you have some input as well about this ?

from cloudex.

manukall avatar manukall commented on June 22, 2024

to be honest i'm directly using the functions in Cloudex.CloudinaryApi.Live, mainly because of this check. imho it could completely go and maybe be offered as an opt-in helper function, like image_list |> Cloudex.filter_image_urls |> Cloudex.upload.

from cloudex.

walter avatar walter commented on June 22, 2024

I'm also of the opinion that the check should be an optional helper. Feels like Phoenix uploads are a common case. The submitted filename is available in the Plug.Upload struct and that is would be the easier thing to check against rather than path.

Alternatively Cloudex.upload could provide an option to skip the check.

from cloudex.

smeevil avatar smeevil commented on June 22, 2024

I've updated the hex and removed both the file and url extension checks.
Thank you all for your input on this 👍

from cloudex.

walter avatar walter commented on June 22, 2024

Thanks @smeevil!

from cloudex.

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.