Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Default files with fingerprint does not seem to work #91

Open
jmadureira opened this issue Aug 19, 2018 · 1 comment
Open

Default files with fingerprint does not seem to work #91

jmadureira opened this issue Aug 19, 2018 · 1 comment

Comments

@jmadureira
Copy link

Hello

If you specify a default image with a fingerprint on the URL no preview will be shown.

<input type="file" class='dropify' data-default-file="../assets/images/auth_bg.jpg?243534523">

The problem seems to be related with the fact it doesn't determine the file extension correctly.

Dropify.prototype.getFileType = function()
{
    return this.file.name.split('.').pop().toLowerCase();
};

This method should probably remove all possible query parameters before determining the file type.

@Anduin2017
Copy link

Same problem here. My image URL doesn't look like https://mywebsite.com/image.png but https://mywebsite.com/image and dropify can not preview it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants