How can Bootstrap fileinput only preview images?

at present, the project uses bootstrap fileinput to upload images, but when it encounters txt or other document formats, it has a very friendly preview of the contents, but the Chinese support is not very good. I want to only preview images, other formats are not previewed, and there are only icons like thumbnails. How to set it up?


has been solved, allowedPreviewTypes: ['image']


I'm going to do it, too.


landlord, how do you solve this problem, I just want to preview the picture, other formats do not preview, I have added your sentence, but it does not take effect, or other formats of files can be previewed, including compressed files, annoying skin;

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3c563-42c58.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3c563-42c58.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?