Replies: 1 comment 2 replies
-
This seems like a reasonable feature request to me. We do want to support it. I think maybe #1382 is the first step. Maybe bump that issue? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a project I'm working on, I'd like to have a simple hash of the bytes received for a
multipart/form-data
UploadFile
, my first instinct knowing that this wasn't something that is directly available from starlette was to subclass the UploadFile class myself to update the hash on seek and write calls, but I don't think that will work since we wan't provide our customized UploadFile subclass back to thestarlette.formparsesrs.MultiPartParser
.I can always just read through the file in my route hander myself to calculate the hash, but since the underlaying file is a spooled tempfile, doing to will create a whole extra load of the file from disk if it's been rolled already. Better ideas would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions