3 ms·
> many websites still don't support uploading webp files. On GitHub if you rename your WebP file to "file.webp.png" it will upload just fine, and will use the
by arp242 3y ago
> many websites still don't support uploading webp files.
On GitHub if you rename your WebP file to "file.webp.png" it will upload just fine, and will use the correct Content-Type header when serving. It's really frustrating a simple \.(png|gif|jpe?g)$ check is preventing the uploading of these files. I found this is actually the case for a number of platforms.
- bombcar 3y agoWhat's fun is when you can upload evilhacker.css.jpg and it correctly handles Content-Type as css and you exploit the tool ;)