Alloy Showcase
![]() |
NoteThe default limit for thecom.liferay.faces.util.uploadedFileMaxSize context-param is 104857600 bytes (100MB). But in order to support that limit, it may be necessary to set <Connector maxPostSize=104857600"> in tomcat/conf/server.xml since the default value is only 2097152 bytes (2MB). |
alloy:inputFile
InputFile is a UIInput component that renders an<input>
element with type="file"
. Since it extends HtmlInputFile, it supports all the features of h:inputFile and also supports multi-file uploads, instant-Ajax, preview, upload progress, and validation.
Progress Usage
Upload progress is displayed by setting showProgress=true
. If appendNewFiles=true
then the selected files are appended to the preview table. Otherwise, the preview table is cleared when new files are selected. Files can be uploaded instantly via Ajax by setting auto=true and by adding an f:ajax child tag. One potential drawback of showing progress is that each file is uploaded in a separate XmlHttpRequest.
Source Code
Liferay Faces Alloy 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20