appwrite / .github

BSD 3-Clause "New" or "Revised" License
16 stars 10 forks source link

Error when uploading large files (over 5 MB) with Appwrite SDK for Flutter (SDK Version: 9.0.1, Server Version: 1.3.3) #22

Closed fvdf closed 1 year ago

fvdf commented 1 year ago

👟 Reproduction steps

  1. Initialize the Appwrite SDK in a Flutter application (version 9.0.1).
  2. Use the SDK to send a file upload request to the Appwrite server (version 1.3.3) with a file larger than 5 MB.
  3. Observe that the upload process gets stuck after sending the first part of the file (approximately 5 MB).

👍 Expected behavior

I expected the Appwrite SDK to successfully upload the entire file larger than 5 MB without any issues.

👎 Actual Behavior

The Appwrite SDK only uploads the first part of the file (approximately 5 MB) and then the upload process gets stuck.

flutter: UploadProgress($id: 64b648843534b29877ad, progress: 80.5257811319271, sizeUploaded: 5242879, chunksTotal: 2, chunksUploaded: 1) flutter: {message: Server Error, code: 500, type: general_unknown, version: 1}

🎲 Appwrite version

Version 1.3.x

💻 Operating system

MacOS

🧱 Your Environment

Additional Information

I apologize in advance for any confusion in my explanation due to my limited English proficiency.

I have thoroughly searched through the Appwrite SDK documentation, existing issues on the official repository, and various online resources for several weeks, but haven't found any solution to resolve this issue with larger files.

I can confirm that the Appwrite server (version 1.3.3) is properly configured to handle large files, as I can successfully upload 20 MB files using the server's web interface on my portable device.

I have also tested this functionality on both a real device and a simulator, and the issue persists, indicating that it is not platform-specific.

I appreciate any assistance and guidance in resolving this issue, as it is essential for the proper functioning of my application.

Thank you very much for your help!

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

🏢 Have you read the Code of Conduct?