Skip to content

Validate the files you download... #215

@Wild1145

Description

@Wild1145

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions