Coder Social home page Coder Social logo

Comments (5)

siddhantgoel avatar siddhantgoel commented on June 1, 2024 1

So to confirm if I understood correctly, the callback function would dynamically decide (based on the field name) what to do with the contained data?

If that's the case, that might not work as well in case someone uploads a huge file which would all end up being stored in memory. Streaming it directly to a file keeps the memory usage low.

from streaming-form-data.

siddhantgoel avatar siddhantgoel commented on June 1, 2024

At the moment it does not. PRs/discussion welcome though!

from streaming-form-data.

aprilahijriyan avatar aprilahijriyan commented on June 1, 2024

Hi, sorry for slow response.

I was just wondering if there is a module to increase the performance of parsing multipart/form-data requests that can be combined with "other frameworks". Literally parsing the raw body of multipart/form-data just like the python-multipart module does.

I'm currently experimenting, creating a web framework based on ASGI. To parse the multipart/form-data query I followed the starlette framework. You can see it here: https://github.com/aprilahijriyan/allin/blob/main/allin/parser.py#L88

I'm asking about this because I wanted to try using your module to see how it performs. ✌🏽

I suggest it might be better to follow what the python-multipart module does. such as adding a callback to hold all the data contained in it.

from streaming-form-data.

lloydzhou avatar lloydzhou commented on June 1, 2024

what to do with the contained data?

store data in tempfile.NamedTemporaryFile ?

from streaming-form-data.

siddhantgoel avatar siddhantgoel commented on June 1, 2024

I didn't mean that as a question. I meant it more in the sense of confirming what @aprilahijriyan was referring to.

Unless you were referring to some other workflow, in which case maybe you could leave a bit more detail on how that process would work with storing data in a temp file?

from streaming-form-data.

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.