Skip to content Skip to sidebar Skip to footer

Jasny Upload Image Preview Plugin When Existing Image Is Empty

I work with jasny upload image preview plugin for bootstrap 3 But this does not work when preview image is empty. I need to show only no+image and select image button not empty div

Solution 1:

If I understood correclty your issue, I think this is because you used fileupload-exists instead of fileinput-exists. So the mark-up for the preview container should be like this:

<divclass="fileinput-preview fileinput-exists thumbnail"style="max-width: 200px; max-height: 150px; line-height: 20px;"></div>

Solution 2:

You need to change: fileinput-exists in your top line of code to fileinput-new in case of no preview image is provided.

<div class="fileinput fileinput-exists" data-provides="fileinput" data-name="myimage">

To:

<div class="fileinput fileinput-new" data-provides="fileinput" data-name="myimage">

Post a Comment for "Jasny Upload Image Preview Plugin When Existing Image Is Empty"