Back

C# Upload from .net Core 8 - webapi error when file is too big.

  • 0
  • Storage
  • Cloud
giorgiorusso
14 Sep, 2024, 10:24

Hi, I'm creating a webapi in .net Core 8 and calling services from AppWrite cloud. All works well but when I try to upload a file that is more larger I receive this error.

in Appwrite.Client.<Call>d__311.MoveNext() in Appwrite.Client.<ChunkedUpload>d__321.MoveNext() in liveaccounts.api.Repositories.images.AppWriteStorageRepository.<Upload>d__4.MoveNext() in C:NET Applications\liveAccounts 2025\liveaccounts.2025.api\Repositories\images\AppWriteStorageRepository.cs: riga 64

It seems apply to Chunks. Need to manage chunks? (in documentation says it's not necessary to do in sdk.)

The code is attached.

The error arise on the await storage.CreateFile call. Any Ideas?

TL;DR
Developers encountering error when uploading large files in .NET Core 8 webapi using AppWrite cloud. Error indicates issue with Chunks. Ensure to check if chunk management is required despite SDK documentation stating otherwise. Error arises at await storage.CreateFile call.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more