Forums de discussion

Multiple file selection through aui

thumbnail
Manish Kumar, modifié il y a 11 années.

Multiple file selection through aui

Junior Member Publications: 93 Date d'inscription: 02/03/12 Publications récentes
Hello Everyone,
I am able to select multiple file using

<input type="file" name="fileField" id="fileField" value="Browse" multiple>


But i want to get this multiple file selection through aui, Please suggest me how to do this.
Thanks in advance.
thumbnail
Priyanka Dhingra, modifié il y a 11 années.

RE: Multiple file selection through aui

Liferay Master Publications: 501 Date d'inscription: 20/12/11 Publications récentes
aui:form action="&lt;%= editCaseURL %&gt;" enctype="multipart/form-data" method="post" &gt;
<aui:input type="file" name="field2" multiple>
<aui:validator name="acceptFiles">
        'jpg, png'
    </aui:validator>
   
</aui:input> 

I think this is what you are looking for
Ashwini Sidhanti, modifié il y a 6 années.

RE: Multiple file selection through aui

New Member Publications: 20 Date d'inscription: 15/12/16 Publications récentes
Small Change in code
<aui:input type="file" name="field2" multiple="true" >

multiple attribute always takes true or false in aui. This tag is not similar to HTML
In case someone is in search of a solution