How to change the preview location of Bootstrap File Input?

Asked

Viewed 263 times

0

I need to change the location where the preview of the images appears, put it inside another div because it is being automatically placed above the input file. So far I haven’t found anything in the documentation that shows how to change that.inserir a descrição da imagem aqui

What I want to do is that the preview is always placed inside a div with the preview id for example and not only be created a div automatically, but I have difficulties with javascript.

  • Which plugin are you using? You don’t have documentation of it to check if there is any parameter that you can change position or location?

  • Its name is: Bootstrap File Input

  • You can use a template. I believe that in this example [link]http://plugins.krajee.com/file-advanced-usage-demo#Advanced-example-6 vc has a config code {browse}\n" +
 " {upload}\n" +
 " {remove}\n

  • Link to: http://plugins.krajee.com/file-basic-usage-demo

  • From what I noticed he creates in the image a div with the file-preview class, a suggestion of mine, if you do not find anything is always in the event of selecting the image you manipulate that div. just an idea

  • vlw I’ll look in the script then what I do

  • Unfortunately I haven’t been able to change the location where he creates the preview div

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.