kartik-v / bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x/4.x./3.x with file preview, multiple selection, and more features.
http://plugins.krajee.com/file-input
Other
5.36k stars 2.39k forks source link

Problem with alwaysPreviewFileExtensions #1835

Closed bobitza closed 1 year ago

bobitza commented 1 year ago

Prerequisites

Steps to reproduce the issue

  1. Use alwaysPreviewFileExtensions, doesn't happend nothing if you use this option
  2. I set to alwaysPreviewFileExtensions: ['jpg', 'jpeg', 'gif', 'png', 'svg', 'bmp'], still don't see the preview of images if i have enabled preferIconicPreview: true,
  3. On photo you can see in your demo also didn't work

Expected behavior and actual behavior

When I follow those steps, I see...

I was expecting to every other file format to have font awesome icons, and extension i set on that array to raw view, for example view image

Environment

Browsers

Operating System

Libraries

Isolating the problem