Back

"File not found" Error while uploading image of size of >5mb in android

  • 0
  • Android
  • Storage
vel
20 May, 2024, 13:25

Hi,

We are using Appwrite for storing images in our application, which has both iOS and Android native versions. We are encountering an issue with image uploads on Android.

When uploading images through iOS, the app accepts images of all sizes without any issues. However, when attempting to upload the same images on Android, we receive the following error: "io.appwrite.exceptions.AppwriteException: The requested file could not be found."

Interestingly, this issue does not occur when the images are smaller than 5 MB; those uploads work perfectly fine. We have thoroughly checked our Appwrite configuration and confirmed that there is no specified limit on the file size. Both the iOS and Android versions are using the same bucket and project ID.

Addded the code snippet for the upload function we are using as image.

Could you please assist us in resolving this issue?

Thank you.

TL;DR
Developers are facing a "File not found" error when trying to upload images larger than 5mb on Android using Appwrite. iOS uploads work fine regardless of image size. The issue seems to be specific to Android. **Solution:** Check the Appwrite configurations for any file size limits. Make sure the bucket and project IDs are the same for both iOS and Android versions.
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