Replies: 1 comment 1 reply
-
If you want to keep the files in db (which usually is not a good practice) you can simply use binary column. If you want to upload a file through API (assuming fastapi) you need to send form/multipart anyway like explained in example here: fastapi/fastapi#657 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! Loving Ormar!
I am migrating some ideas from a Django project and wondering the best way to manage file uploads (akin to
FileField
). Have I missed some obvious documentation?Is there a best practice for how to manage saving files using the
File
andUploadFile
classes? Perhaps similar to this: tortoise/tortoise-orm#100 (comment)I had a quick look at how to add something myself to Ormar, but thought I would ask before starting, as I doubt I am the first to wonder. :)
Thanks!
John
Beta Was this translation helpful? Give feedback.
All reactions