How to "properly" get file size when using unstable_composeUploadHandlers #6169
Replies: 5 comments
-
That's pretty much how the remix/packages/remix-node/upload/fileUploadHandler.ts Lines 136 to 143 in f71e915 |
Beta Was this translation helpful? Give feedback.
-
Thank you for your feedback! |
Beta Was this translation helpful? Give feedback.
-
Having processed uploads as an assignment a long time ago, I vaguely remember that there is also the
It might be worthwhile to add a |
Beta Was this translation helpful? Give feedback.
-
Thank you for your feedback @Download :) Yes, I think so. Yes, exposing a |
Beta Was this translation helpful? Give feedback.
-
Moving this to discussions where all new features gets discussed as per our dev guidelines |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to check the file size when using unstable_composeUploadHandlers?
UploadHandlerPart
returns{name: string, filename?: string, contentType: string, data: AsyncIterable<Uint8Array>
Currently I am doing it like this:
It works, but is this the way to do it?
Beta Was this translation helpful? Give feedback.
All reactions