twitter bootstrap - jQuery - file upload -


up front, question have purpose of:

  • data-provides="fileinput"
  • data-trigger="fileinput"
  • data-dismiss="fileinput"

does fileinput need unique? want have 3 or 4 different photo uploads on 1 page, should of these different, fileinput1, fileinput2, etc?

and data-provides/trigger/dismiss mean? how work?

for more context: using jasny bootstrap image uploading; see http://jasny.github.io/bootstrap/javascript/#fileinput

using example, have used code:

<div class="s-item fileinput fileinput-new s-photo" data-provides="fileinput">     <div class="s-photo-explain">upload photo</div>     <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;"></div>     <div>         <span class="btn btn-default btn-file">             <span class="fileinput-new">new photo</span>             <span class="fileinput-exists">change photo</span>             <input class="s-input" type="file" name="s-photo">         </span>         <a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">remove photo</a>     </div> </div> 


Popular posts from this blog