
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
- Unable to create push providers - FCM or...
Currently unable to create a push provider for FCM or APNS.... https://github.com/appwrite/console/issues/2045 When uploading a file... FCM = Valid file retu...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
