🐛 Bug Report: "Entity Too Small" 400 error in file upload
@ChiragAgg5k đang làm issue này rồi.
Từ ngày 14/10/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
👟 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
- Ngôn ngữ chính
- TypeScript
- Star
- 4.3k
- Fork
- 36
- Merge trung bình
- 2 giờ 39 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của appwrite/sdk-for-react-native
-
🐛 Bug Report: Storage uploads fail on Expo SDK 55 because the SDK imports a removed FileSystem APIĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
appwrite/sdk-for-react-native#112 · 3 bình luận ·
-
🐛 Bug Report: INVALID_STATE_ERROR crash after background + network disconnect + foreground cycleCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
appwrite/sdk-for-react-native#101 ·
-
App crashes at launch on Expo SDK 54: expo-file-system@18 pin conflicts with the app's expo-file-system 19Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
appwrite/sdk-for-react-native#114 ·
-
🐛 Bug Report: [TypeError: Cannot read property 'getItem' of undefined]Có thể làm lại được @shreshta312 đã nhận 53 ngày trước và không có pull request nào đang mở. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
appwrite/sdk-for-react-native#113 · 1 bình luận ·
Tất cả issue của appwrite/sdk-for-react-native
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
callstackincubator/simlock#639 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
aws/agentcore-cli#2606 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug Cosmetic
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug claude Minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
linagora/twake-mail-admin#301 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày