Closed g-wilkinson closed 4 years ago
I have updated the screen shot to indicate the issue. i.e. the first two uploads are previews that have already been uploaded to server so we don't want the Remove button to show for these (as highlighted with the magenta box).
The last upload/on the right has just been uploaded so is correctly showing the Remove button.
Fixed via above commit.
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
Expected behavior and actual behavior
Once a file has been uploaded we do not want the ability for end users to delete the file.
When I follow those steps, I see... the "Remove file" button
I was expecting... not to see the "Remove file" button
I have not been able to reproduce on the demo site as have not found an example that uses initialPreviewShowDelete but the following is similar to what we are using: https://plugins.krajee.com/file-input-ajax-demo/6
Is my understanding of using initialPreviewShowDelete correct or is there another option to use?
Plugin options are:
Environment
Browsers
Operating System
Libraries
Isolating the problem