Open devjunhong opened 10 hours ago
Fortunately, there's a workaround of this issue. If you set the chunk size to be slightly more than the file size, it will work without an issue.
I mean
CHUNK_SIZE = 1 * 1024 * 1024 # 1 MB <- if this is bigger than the file size, it is okay
Hi oittaa,
Thanks for your continue effort on this project.
Describe the bug
I wanted to try chunk a large file and then upload to the gcp-storage-emulator.
This failed with ValueError. However, the real google cloud storage works fine.
To Reproduce
To reproduce this error, I had to download a sample file.
Hence, I wrapped the script with docker-compose.
Hopefully, this is helpful to reproduce the issue.
https://github.com/devjunhong/large-file-issue
Expected behavior
It should finish uploading without an error.
System (please complete the following information)