Relative Content

Tag Archive for javascriptphpfilewebp

How to detect and block a webp image that has jpg extension?

some webp images when saved have .jpg extension but I want to explicitly disallow webp type files because it is still too heavy in size for my storage. This is my working code in javascript that detects and disallows non jpg/png file extensions, but webp images with extensions of jpg obviously will still pass through