🐛 Bug Report: "Entity Too Small" 400 error in file upload
@ChiragAgg5k is already working on this.
Since Oct 14, 2025.
Assessment
This issue has not been assessed yet.
Description
👟 Reproduction steps
When I try to upload an image using the storage.createFile method, I get a response of 400 status code.
The image is 5.13 mb.
👍 Expected behavior
What ought to happen is that the image gets partitioned and uploaded in chunks of which 5mb is the set chunk size for multipart file upload to Amazon s3 storage provider.
5.13mb = 5mb + 135kb.
👎 Actual Behavior
What eventually happens is that the first chunk 5mb gets uploaded, but then the second and final chunk fails to upload giving the "Entity too small" error.
Meanwhile the final chunk is permitted to be smaller than 5mb.
So is it that the SDK doesn't know that that is the final chunk?
Someone posted a fix in a stack overflow link. Quoted
"
Apparently, it's part of the completeMultiPartUpload function. That's where the error is being thrown.
Details: The uploadPart is taking my data, whatever my chunk size is, and storing it in a pool of some sort. The error is being thrown at the maxPartSize, being too small. Changing that to anything greater than 5 MB solved the issue.
"
🎲 Appwrite version
Version 0.10.x
💻 Operating system
Windows
🧱 Your Environment
I use react-native-appwrite 0.13.0 . The mobile app is a native development build from EAS
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 36
- Avg merge
- 5h 46m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from appwrite/sdk-for-react-native
-
🐛 Bug Report: Storage uploads fail on Expo SDK 55 because the SDK imports a removed FileSystem APIOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
appwrite/sdk-for-react-native#112 · 3 comments ·
-
🐛 Bug Report: INVALID_STATE_ERROR crash after background + network disconnect + foreground cycleOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
appwrite/sdk-for-react-native#101 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
appwrite/sdk-for-react-native#114 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
appwrite/sdk-for-react-native#113 · 1 comment ·
All issues in appwrite/sdk-for-react-native
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
keytrace logo svg?Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
HigherOrderCO/Bend#1294 ·
-
Price: 75 USD Priority: 2 (Medium) Time: <1 Hour
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day