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

Only suggestion about limited file types upload (example #42) #69

Closed h-sobhy closed 9 years ago

h-sobhy commented 9 years ago

Great Plugin, thanks for everyone worked on it. This is only a note or suggestion since the plugin is perfect :) .

I only noticed that In example 42 on plugin website with limited file types, when choose allowed files it done successfully and once I added invalid file type with another many allowed, there was no chance to remove or undo, I had to close all the preview pan and start to pick my right files again.

If not hard to do, I suggest to add 'invalid" thumbnail whenever the plug in become able to remove items individually (remove items individually will be nice too).

       $("#input-42").fileinput({
            maxFilesNum: 10,
            allowedFileExtensions: ["jpg", "gif", "png", "txt"]
   });

That could be a very small issue but if the user is picking files from large file library it might take time to re-pick the files again.

Also not sure if maxFilesNum is working in that example, I have selected 15.

kartik-v commented 9 years ago

Refer #59. At this stage the plugin is created to just use the features of the NATIVE HTML 5 file input as much as possible (intentionally to minimize as much of other code and dependency overheads). The native file input unfortunately does not allow to edit previously selected files.

Queuing files using FormData, testing for cross browser support using flash/java applets, or other modes are not in the scope of this extension.

I may try to create a separate extension for this as discussed in #62 and #63 when I get time.

kartik-v commented 9 years ago

Refer new planned release v4.0 enhancements #70.

h-sobhy commented 9 years ago

@kartik-v thank you for all the new features https://github.com/kartik-v/bootstrap-fileinput/issues/70