
Hi!
Using https://github.com/appwrite/sdk-for-apple to upload images to Storage, it does not upload images larger than ~2mb.
Error message: Invalid document structure: Attribute "chunksTotal" has invalid type. Value must be a valid range between 0 and 2,147,483,647
Code:
let media = try await storage
.createFile(
bucketId: "xxx",
fileId: ID.unique(),
file: InputFile.fromData(
targetImage!.jpegData(
compressionQuality: 1.0)!,
filename: "example.jpg",
mimeType: "image/jpeg")
)
Expected behavior
Successfully uploading larger images to storage.
Actual Behavior
It actually throws an error "Invalid document structure: Attribute "chunksTotal" has invalid type. Value must be a valid range between 0 and 2,147,483,647" and keeps corrupted files in bucket (with status pending).
Appwrite version
Version 1.6.x
Operating system
Linux
Your Environment
SDK: https://github.com/appwrite/sdk-for-apple - latest version Language: Swift
Recommended threads
- Image Transformation Issue
My project was working with images normally, I never processed them or anything, and today, suddenly when trying to add or update images from the project, it st...
- easiest way to ban an IP from appwrite
for example, lets say that i have an app where people can post cars, and someone is constantly spamming my app with trucks, is there a way to ban that user IP s...
- Relationship problem
When I UPDATE a document that has a relationship and I pass id and all the data of the relationship it works but if i CREATE a document then it says 401 user un...
