-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File size from stream #70
Comments
Thanks to a colleague, I figured why it's the case: we know the body request length, if it's the last part of the request, we can deduce the file size. I close the issue since I believe there is no way to solve my issue ;-) |
@jsilvestre yea, if the request does not list the content-length of each part (that's optional and up to the client) then we don't know the byteCount of the part until after it is fully read (but we leave reading the part to you) :) |
so if I send 3 files 5kb 30kb 20kb, it seems the first so if I need to know the size of a part, I can know it in the next part event with Well nvm, they could be stored in part.name, but actually I'll save on disk and read size there |
Hello and thank your work, it's going to be very helpful!
I find difficulties understanding what "part.byteCount" is since it changes in function of the part orders. I get the correct file size if the file is the last part (as stated in the documentation) but I don't understand why it's not the correct file size if it's not the case; and can't figure how to compute it if it's not the last part (and the part doesn't have a content-length header).
Thanks in advance for your answer.
Cheers!
The text was updated successfully, but these errors were encountered: