deldesir / calibre-web-old

:books: Web app for browsing, reading and downloading eBooks, videos, pictures and audio stored in a Calibre database
GNU General Public License v3.0
0 stars 0 forks source link

WEBP images fail to upload: "File extension 'webp' is not allowed to be uploaded to this server" #22

Open holta opened 1 year ago

holta commented 1 year ago

Is this a bug or intentionally not yet implemented?

Screenshot 2023-08-09 165112

Either way, let's prioritize this for rapid resolution in coming weeks ✅

CONTEXT: Basically all major browsers have supported WEBP images for more than 5 years now. So this definitely needs to be made to work. As soon as is realistic (while removing lesser used file types / file suffixes that we should NOT be supporting!)

https://github.com/deldesir/calibre-web/blob/main/cps/constants.py#L145-L155

holta commented 1 year ago

@deldesir explained:

The ansible role uses a premade database in https://github.com/iiab/iiab/tree/master/roles/calibre-web/files which override constants whitelist.

WebP can be enabled quickly following instructions in https://github.com/janeczku/calibre-web/wiki/Configuration#enable-uploading

I consider this a bug.

Regardless what the best way is to fix it.

WEBP like JPG/JPEG, PNG, GIF (and possibly SVG?) should work out-of-the-box with Zero Bureaucracy(TM).

Regardless how we go about this — e.g. if maintaining 2 parallel app.db files is regrettably the best way forward for now?