Giter Club home page Giter Club logo

Comments (5)

dawidratynski avatar dawidratynski commented on July 19, 2024 1

The solution in the current PR will not work on Windows as calling os.remove while the file is in use results in error (https://docs.python.org/3/library/os.html#os.remove). Will add a PR using the tempfile library that should work on both Unix and Windows.

from oioioi.

dawidratynski avatar dawidratynski commented on July 19, 2024 1

Added a PR that should work on both Unix and Windows.
mbi/django-simple-captcha#226

from oioioi.

dawidratynski avatar dawidratynski commented on July 19, 2024

The issue seems to be a bug in the django-simple-captcha library. Generated audio files are never being deleted, even after captcha expires.

Opened issue: mbi/django-simple-captcha#225

from oioioi.

A-dead-pixel avatar A-dead-pixel commented on July 19, 2024

I made a PR there with a trivial fix in October, though it hasn't been merged nor reviewed yet.

from oioioi.

DietPawel avatar DietPawel commented on July 19, 2024

Wouldn't your approach create and delete this file on every request?

Keep in mind that /tmp can be separate for different workers of uwsgi when running on separated containers.

I think allowing caching and reusing already created files would require using filetracker with TTL for files. I think S3 supports TTL for files, why not migrate to S3 and make our life easier in the future?

from oioioi.

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.