fix(media): upload photo — taille, formats et nginx
- nginx : client_max_body_size 15m (photos smartphone > 1 Mo rejetées silencieusement) - backend : redimensionnement original à 500×500 max (aspect ratio conservé) avant sauvegarde WEBP - backend : thumbnail généré depuis l'image déjà redimensionnée (économie mémoire) - backend : formats acceptés étendus — image/heic, image/heif, image/jpg - backend : normalisation content-type en lowercase (robustesse navigateurs) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,8 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
client_max_body_size 15m;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml image/svg+xml;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user