Hi,
While I was editing a video, I tried to upload a thumbnail from an image that is 4,4 MB. Upload allowed is 8 MB. It’ s recent change from Commit a4f836c if I understand it correctly.
Image smaller then 4 MB can be use but I can’t use file bigger than 4 MB. If I do so I get error Client log: Erreur: <html> <head><title>413 Request Entity Too Large</title></head> <body> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx</center> </body> </html>
.
Is there something I should modify in nginx ? I can upload big video so I don’t think so, but I’m no expert. Is there a bug ?
I’m using Peertube V7.1.1
Maybe this line should be changed? (and the one above)
I’ve modified that part into this
location ~ ^/api/v1/(videos|video-playlists|video-channels|users/me) {
client_max_body_size 12M; # default is 1M
add_header X-File-Maximum-Size 8M always; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size)
try_files /dev/null @api;
}
and it worked, thank you @JohnLivingston.
I opened an issue on github: Missing nginx configuration change after increasing max image size · Issue #6974 · Chocobozzz/PeerTube · GitHub
The change I suggested could impact other endpoint, so i prefer that Chocobozzz propose the correct fix.
(you can let this configuration for now, it should not break anything).
I agree with you, that’s why I haven’t opened an issue about it and was waiting for Chocobozzz to step in.