appwrite / appwrite

Your backend, minus the hassle.
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
43.95k stars 3.92k forks source link

🐛 Bug Report: Upload Progress function of Storage API is not working #5279

Open vlohar08 opened 1 year ago

vlohar08 commented 1 year ago

👟 Reproduction steps

Try to upload a file of size less than 5 MB.

👍 Expected behavior

The progress callback function should work for every file. The size of images is usually less than 5 MB. And if there is no progress indicator for upload then the client will go crazy.

👎 Actual Behavior

The progress callback was not working. And I know why this happens as I asked this question on discord first and got this response from Steven.

Steven: So we chunk our uploads in 5MB increments. So to see the progress, you'd have to upload bigger than 5MB

🎲 Appwrite version

Version 1.2.x

💻 Operating system

Windows

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

joeyouss commented 1 year ago

Hi, thank you for opening this issue. We will look into improving this.

KangHidro commented 1 year ago

Hi, any update on this issue? 🥹 It will be great If there is a "chunkSize" param sent to onProgress function or a .env setting like that 🥹