
I noticed that Appwrite has a built-in compression algorithm for files. However, when I created a new file after creating the bucket and enabled the Zstd algorithm for compression, it did not change the file size. Is there a configuration I forgot to set? When does the compression start? My second question is: there is a URL for the file in the bucket so, is there a way to get this URL from the SDK? Because the get_file method did not send this attribute.

Not sure about the compression, but for the url, you can dynamically build that pretty easily.

did you upload the file before or after making the compression algorithm change?

After....

My file's size on my desktop

The file's size on the storage


So, I understand that the compression starts immediately After I upload the file

??

Compression happens on file upload

Does the compression algorithm support specific extensions or all MIME types?

Hmmm, No I haven't

I am going to try it locally



So the size here is the original size, not the compressed size

Can you look in the database, or the file on disk?

In the database, there should be a sizeActual column: https://github.com/appwrite/appwrite/blob/d86ee91316da92055442b6481469bc9550507303/app/controllers/api/storage.php#L603

Is there a specific path where the storage's files saved in on the desk?

I believe the files are in the appwrite_appwrite-uploads
docker volume

I wanted to try this out and the compressed files size on disk is even larger than before uploading?

Disregard my last comment as I had encryption enabled for the bucket. But now with encryption disabled the files are still the same size (disk and console)

the original uploaded files are 2,1MB and 491KB so the compression doesn't seem to do much

ya maybe the compression settings...

can you set the compression level? what are your options?
Recommended threads
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- Adding Domain to Sites [Self Hosted]
I am struggling to get this working. I stood-up a new server and deployed appwrite 1.7.4. I added update .env file _APP_DOMAIN=appwrite.mydomain.com _APP_DOMAI...
- Need help migrating from self hosted to ...
Hi! I am using self hosted appwrite for testing stuff out and now it's prod ready I want to deplot it to the cloud version. It gave me this error when fetchin...
