File upload fails #329

Closed
opened 2026-01-19 18:29:54 +00:00 by michael · 4 comments
Owner

Originally created by @Destroyer on GitHub.

I am trying to upload 1GB file but right at the start I get this error: Error (0) during upload of file . Can you please fix it?

Originally created by @Destroyer on GitHub. I am trying to upload 1GB file but right at the start I get this error: `Error (0) during upload of file` . Can you please fix it?
Author
Owner

@techburgher commented on GitHub:

It seems like the ContentLength is capping out at 4294967295 bytes, preventing a file larger than this from properly uploading.

I see the following logged by the server:

2018/03/02 14:29:25 Uploading cA3TH 10g.bin 4294967295 application/octet-stream

The transfer craps out after uploading 4294967295 bytes of my 10 GB file. How would one go about correcting this?

@techburgher commented on GitHub: It seems like the ContentLength is capping out at 4294967295 bytes, preventing a file larger than this from properly uploading. I see the following logged by the server: 2018/03/02 14:29:25 Uploading cA3TH 10g.bin 4294967295 application/octet-stream The transfer craps out after uploading 4294967295 bytes of my 10 GB file. How would one go about correcting this?
Author
Owner

@paolafrancesca commented on GitHub:

@techburgher cannot reproduce locally both with local and gdrive storage (I don't have an s3 account to test on). Anyway the content-lenght you see in the output of the server is calculated before sending to the storage and it comes from the Content-Length header sent from the client (unless the client sends -1, in this case the value is calculated according to the size of the data copied to a tmp file buffer)

what storage do you use? can you run curl with verbose flag and past the output?

@paolafrancesca commented on GitHub: @techburgher cannot reproduce locally both with local and gdrive storage (I don't have an s3 account to test on). Anyway the content-lenght you see in the output of the server is calculated before sending to the storage and it comes from the `Content-Length` header sent from the client (unless the client sends `-1`, in this case the value is calculated according to the size of the data copied to a tmp file buffer) what storage do you use? can you run curl with verbose flag and past the output?
Author
Owner

@Taxel commented on GitHub:

Same here with a 4.04 GB mp4 file

@Taxel commented on GitHub: Same here with a 4.04 GB mp4 file
Author
Owner

@techburgher commented on GitHub:

@Favna I'm running a local copy of the server and am running into this issue.

@techburgher commented on GitHub: @Favna I'm running a local copy of the server and am running into this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#329