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
Load the following new plugin files before fileinput.min.js - this is needed to auto parse the mime type based on file contents.
<!-- buffer.min.js and filetype.min.js are necessary in the order listed for advanced mime type parsing and more correct preview. This is a feature available since v5.2.9 and is needed if you want to ensure file mime type is parsed correctly even if the local file's extension is named incorrectly. This will ensure more correct preview of the selected file (note: this will involve a small processing overhead in scanning of file contents locally). --><scriptsrc="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.9/js/plugins/buffer.min.js" type="text/javascript"></script><scriptsrc="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.9/js/plugins/filetype.min.js" type="text/javascript"></script>
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, I see... the preview show binary contents
I was expecting... the fileinput analyze the mimetype based on its contents header of the file and show the corresponding preview
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: