I am using jasny to download a boot file using ajaxupload.js.
http://jasny.imtqy.com/bootstrap/javascript.html#fileupload
I used the following code. When I click on the selection file, it shows it in the input div.
But when I click the submit button and then try to select an item, it does not display the name in the input div
Here's the script: http://jsfiddle.net/Ffkj6/
<form method="post" id="uploadform" enctype="multipart/form-data"> <div id="upload-adm" class="fileupload fileupload-new" data-provides="fileupload"> <div class="input-append"> <div class="uneditable-input span3" style="height:20px;"> <i class="icon-file fileupload-exists"></i> <span class="fileupload-preview"></span> </div> <span class="btn btn-file"> <span class="fileupload-new">Select file</span> <span class="fileupload-exists">Change</span> <input type="file" name="file" id="file"/> </span> <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a> <input type="submit" name="submit" value="Upload" class="btn adm-file-btn"> </div> </div> </form>
source share