appwrite/app/config/storage/inputs.php
Steven Nguyen 5d25265e5c
fix(storage): do not preview gif input/output
Processing a gif file can consume large amounts of memory causing the
container to crash.

As a safety precaution, don't output to gif either. Any attempt to
output to gif will fallback to jpg.
2025-05-16 14:46:24 -07:00

10 lines
185 B
PHP

<?php
return [
// Accepted inputs files
"jpg" => "image/jpeg",
"jpeg" => "image/jpeg",
"png" => "image/png",
"heic" => "image/heic",
"webp" => "image/webp",
];