Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I need to use this plugin to upload excel files. I use the jQuery UI version because lets me configure the number of files that are allowed to be uploaded, the allowed file types and also my whole site uses jQuery UI. Well,using this example provided in the plugin page I had almost everything I need. Everything works smoothly when the file input is put in the raw code of the site. However, when I try to use the same code

<div id="fileupload">
    <form action="FileTransferHandler.ashx" method="post" enctype="multipart/form-data">
        <div class="fileupload-buttonbar">
            <label class="fileinput-button">
                <span>Cargar Excel...</span>
                <input type="file" name="files" multiple="multiple" />
            </label>           
            <div class="fileupload-progressbar"></div>
        </div>
    </form>
    <div class="fileupload-content">
        <table class="files"></table>
    </div>
</div>

to create some file inputs dynamically, not only it does nothing , but the input files don't even get styled.

Is there any way to explicitly tell a input file to use this plugin, something similar to what is use with the basic version

As always any advise or guidance would be greatly appreciated.

Thanks in advance.

share|improve this question
    
You have to reinitialize plugin on new added elements if plugin doesn't accept any kind of delegation –  A. Wolff Nov 26 '13 at 13:01
    
I tried this $('#fieldName').fileupload(); Once all the file inputs were created, but still cant get any results :( –  eddy Nov 26 '13 at 15:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.