-
-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Is your feature request related to a problem? Please describe.
Currently (As mentioned on my previous issue #214 ) You can download any file you want, even if it isn't an image. This results in me being able to download huge test files for example, which will never be rendered, and throw errors in the console.
Describe the solution you'd like
As an absolute minimum the plugin should validate the file extension to make sure that it is a valid image / gif / video. Ideally more sophisticated validation would be used to ensure that it is an actual valid image / gif / video, but anything would be better than the current state...
Describe alternatives you've considered
We're looking currently at maintaining our own fork for our server to maintain this functionality, which we'd like to avoid doing if it can be properly built into the original plugin.
Additional context
I managed to download a 10GB Hetzner test file by telling this plugin it was an image, downloaded it, filled up space on the disk, and errored out constantly on the console...