You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
The issue still exists against the latest master branch of bootstrap-fileinput.
This is not an usage question. I confirm having read the plugin documentation and demos.
This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
I have attempted to find the simplest possible steps to reproduce the issue.
Upload two images one with an uppercase extension, the other one lowercase
Only the lowercase extension will be displayed as iconic preview...
I saw on line 938 - 941 that you are checking for an iconic template against the 'previewFileIconSettings':
ext = fname.split('.').pop();
if (self.previewFileIconSettings && self.previewFileIconSettings[ext]) {
out = self.previewFileIconSettings[ext];
}
The templates are maintained in lowercase, so it won't find an iconic template for uppercase extensions. Maybe the extension should be transformed to lowercase before retrieving the template, so the iconic preview also works for uppercase extensions.
Thanks in advance
Libraries
jQuery version: 1.11.4
bootstrap-fileinput version: 4.4.0
The text was updated successfully, but these errors were encountered:
master
branch of bootstrap-fileinput.Only the lowercase extension will be displayed as iconic preview...
I saw on line 938 - 941 that you are checking for an iconic template against the 'previewFileIconSettings':
ext = fname.split('.').pop();
if (self.previewFileIconSettings && self.previewFileIconSettings[ext]) {
out = self.previewFileIconSettings[ext];
}
The templates are maintained in lowercase, so it won't find an iconic template for uppercase extensions. Maybe the extension should be transformed to lowercase before retrieving the template, so the iconic preview also works for uppercase extensions.
Thanks in advance
Libraries
The text was updated successfully, but these errors were encountered: