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
- type generation on same columns in table
is there way to prevent this ? or only need to update column name like table prefix?
- Converting circularstructure to JSON
Hello 👋, when this will be fixed on Appwrite Sites? It's draining our quotas for Sentry, it must be a problem with the default logger which is always on for Ap...
- WEBP preview not working after upgrading...
Only with preview, I'm getting this error: {"message":"no decode delegate for this image format `WEBP' @ error\/blob.c\/BlobToImage\/481","code":400,"type":"sto...