1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Is it possible to handle multipart form data fields first then file? [closed]

Discussão em 'Python' iniciado por Stack, Setembro 11, 2025.

  1. Stack

    Stack Membro Participativo

    So I was trying to handle the multipart form data.

    The expected workflow:

    1. Incoming multipart form data. (2 files, 5 text fields)
    2. If a field is missing, reject the request.
    3. If all fields exist, save files.

    The assumption is listed below:

    1. Assume the fields and files order are random
    2. File sizes are big (>1 GB)

    The frameworks I tried are FastAPI, Express.js (Multer, Busboy), Crow.cpp.

    Both of them seem to block and wait for the file saving to be done and perform a checking on fields, which is time-consuming if the requst is bad.

    Continue reading...

Compartilhe esta Página