Box.V2.Core upload part not working while streaming file
CreateUploadSessionAsync works fine gives an upload session.
When UploadPartAsync is called with the chunk stream it gives me error. "The format of value 'bytes 0--1/29115392' is invalid."
We have created a wrapper over the Box.com API in a .Net Core application and when client calls these API then this error occurs. we are reading the file using streaming instead of buffering. Due to streaming of file content length is 0.
Can somebody help regarding this issue?
-
Hi ,
I think this might have to do with the content-range header of the request, which is required. This will need to be set to a valid range of the part.
I don't know if this post might help (depends on how your code is set up), but the alternative that I would suggest would be to see how the Box .Net Core SDK is set up and mimic that.
- Jon
Please sign in to leave a comment.
Comments
1 comment