Back

Download Error: both API upload and Web UI upload

  • 0
  • Storage
  • Cloud
fdds43
2 May, 2024, 20:41

I am experiencing a bug where when I am downloading an uploaded file > 20MB, I get 0bytes to ~3 MBs after the download. Downloaded file is corrupt and obviously unopenable given the mismatch in size.

I am using the website UI (Chrome, MacOS) to download/upload, have tried using API to upload and download. Have tried from files from few kbs to 60MBs, haven't tried more because upload is slow; formats range from .mov .webm, .zip, and pdf . But basically when files exceed a certain size, I am no longer able to download a working file. When being a certain size, it seems fine. From my testing, that threshold could be 13-23 MBs.

project id: 660afc6b61443f10df99

TL;DR
Developers are experiencing download errors when downloading files exceeding a certain size using both API upload and Web UI upload methods. The issue is likely related to chunked uploads. To resolve this, developers should use the SDK or implement chunked uploads for files over the threshold size (13-23 MBs). This issue has been reported under project id: 660afc6b61443f10df99.
VincentGe
2 May, 2024, 20:50

You need to use the SDK or implement chunked uploads

VincentGe
2 May, 2024, 20:51

We upload files in 5MB chunks for less memory use and better reliability. You can do this through REST API but you need to implement chunked upload, which I don't recommend. It has to do with manipulation of input file at a byte level

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