Giter Club home page Giter Club logo

Comments (3)

ivanvenosdel avatar ivanvenosdel commented on June 16, 2024

I would like to see this feature as well and have put some thought into it's implementation.

Since django-s3direct never touches the file directly (by design). It would need to rely on S3 to do the content-size checking. That is achieved by way of a "content-length-range" in the post policy.

Presently the policy is constructed using the positional values provided in the value of each key within the S3DIRECT_DESTINATIONS setting.

For these advanced cases, instead of adding a positional that is specific to this condition. The project could add one that is for a dictionary of arbitrary conditions to add to the post policy. I think that change would better shield the project maintainers from having to field future issues for new one-off-site-specific conditions yet still make it possible for those that would like to utilize a new condition.

I might be able to do a PR for this (or a new positional just like the others) later if the project maintainer expresses interest.

from django-s3direct.

bradleyg avatar bradleyg commented on June 16, 2024

Definitely interested :)

from django-s3direct.

ivanvenosdel avatar ivanvenosdel commented on June 16, 2024

Great! I should have something in ~1-2wks.

from django-s3direct.

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.