Uploading larger then 2GB file
See original GitHub issueI`m unable to upload 2.06 GB file, for smaller files it just works fine.
File size: 2215659520 bytes Upload Status: Failed Bytes send: 2139095040 bytes Upload Exception Message: Invalid format. Google.Apis.Storage.v1 1.20.0.734 .NET 4.5.2 Mono platform
Any suggestion or this is a bug?
Code:
var localFile = "/path/to/2.06.gb.tar";
var storageFile "/folder/file.tar";
Console.WriteLine("File size:" + new FileInfo(localFile).Length);
using (var f = File.OpenRead(localFile))
{
var u = Service.Objects.Insert(new Object()
{
Bucket = BucketName,
Name = storageFile,
ContentType = "application/octet-stream",
}, BucketName, f, "application/octet-stream");
var upload = u.Upload();
Console.WriteLine("Upload Status: " + upload.Status);
Console.WriteLine("Bytes send: " + upload.BytesSent);
if (upload.Exception != null)
{
Console.WriteLine("Upload Exception Message:" + upload.Exception.Message);
if (upload.Exception.InnerException != null)
{
Console.WriteLine("Upload Inner Exception Message:" +
upload.Exception.InnerException.Message);
}
}
return upload.Status;
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:13
Top Results From Across the Web
Send and Transfer Large Files
Share files directly from your cloud storage with anyone, or separately send up to 100 GB (upgradable to 250 GB) with Dropbox Transfer....
Read more >The 11 Best Ways to Send Large Files
Best Ways to Share Big Files · Upload your files to a cloud storage service. · Use WeTransfer, a free online service. ·...
Read more >How to Send Large Files Over the Internet
You can send a file as large as 20GB for free. A basic $2.99-per-month plan covers files up to 50GB, the $10.99-per-month Pro...
Read more >How to Send Large Files in 2023 [Three Best Free Options]
Learn how to send large files over the internet for free. Use three common and easy options, from cloud storage to file transfer...
Read more >Send large files free | File sharing | File upload | File transfer
Send large files for free with TransferXL ✓ without registration ✓ secure & fast file upload ✓ file transfer up to 200 GB....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think that would be best - everything points towards this being a mono bug. Closing for now.
Great research though @jskeet i have seen this before now i know where to point people to .