Replies: 3 comments
-
My current implementation is to do incremental reconstructions after each chunk. This avoids needing to know when the last chunk is received. Each chunk is concatenated as a binary file inside the file_upload_callback(). By treating each chunk as binary files, I am able to reconstruct all file types. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, the Also because an HTTP request doesn't require a |
Beta Was this translation helpful? Give feedback.
-
Yes, that makes sense. The incremental reconstruction approach seems to be working well. |
Beta Was this translation helpful? Give feedback.
-
I would like to upload large files with chunking. The sheep_counter provides a good start. It uploads files with maximum chunk sizes of 16kb. I would like to know how to determine when the last chunk is delivered, in order to invoke code to piece all of the chunks together, in order to reassemble the large file.
In the sheep_counter example, ulfius_set_upload_file_callback_function() assigns file_upload_callback() to intercept the chunked data nicely.
Is there a function that provides total file size, or number of expected chunks that I'm missing? Is there anything that would notify the application code that the last chunk is being sent?
Beta Was this translation helpful? Give feedback.
All reactions