2011-05-18 74 views
1

我可以找到很多插件,允許我使用一個html輸入標籤上傳多個文件,但我想要的是有多個html輸入標籤的文件,但只有一個ajax調用。jquery ajax多個上傳標籤

我可以只有一個Ajax調用來上傳文件嗎?

這裏是我的html的例子:

<fieldset> 
    <legend>test Files</legend> 
    <label for="testFile">Test File 
     <span class="small">Change the test file.</span></label> 
    <input name="testFile" type="file"/> 
    <label for="iconFile">Test Icon File 
     <span class="small">Change the test icon.</span></label> 
    <input name="iconFile" type="file"/> 
    <label for="featuredFile">Test Featured File 
     <span class="small">Change the test featured.</span></label> 
    <input name="featuredFile" type="file"/> 
</fieldset> 

回答

0

他們都可以調用相同的函數,然後上傳文件。