Code Monkey home page Code Monkey logo

Comments (3)

tiangolo avatar tiangolo commented on April 28, 2024 1

First, I have to say that I am really impressed by what you guys are doing here. Also, your docs are outstanding and easy to follow. I spotted your project on my recommendations page and immediately fell in love, losing most of my Friday night tinkering around.

Awesome! It's great to hear that. Thanks for writing it 😄

When I got to your file upload section in the docs, I hit a snag when trying to upload an mp4 file.

Thanks for the very detailed bug report.

The bug was because of a default constraint in Pydantic. I just created a custom internal class for this that fixes the problem. I also added a test for this specific use case.

Please try with the latest version 0.1.17.


I also plan on supporting Starlette's (undocumented) file uploads, to get a file-like object. But this will come afterwards.

from fastapi.

rcox771 avatar rcox771 commented on April 28, 2024 1

Great, thanks! 0.1.17 works without a hitch 🎉. I'll close this issue and keep an eye out for changes in the future.

I also plan on supporting Starlette's (undocumented) file uploads, to get a file-like object. But this will come afterwards.

That looks like a good idea. Do you have any plans to reuse pathlib's file interface?

from fastapi.

tiangolo avatar tiangolo commented on April 28, 2024 1

Awesome! Thanks for reporting back.

I'll use Starlette's undocumented UploadFile which exposes a nice file-like API. So it will be quite similar to standard Python files.

from fastapi.

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.