Page History
Table of Contents |
---|
Todo
- uitleggen waarom configuratie nodig?
- + voorbeeld
Goal
This how-to describes how to use the multiple file upload.
...
Code Block |
---|
#fileupload fileupload.label.single=Add file... fileupload.label.multi=Add files... fileupload.description.filesize=Maximum file size is: {0} fileupload.description.extension=Allowed file extensions are: {0} fileupload.validation.extension=File type not allowed fileupload.validation.filesize=File is too large fileupload.status.succes=File(s) uploaded successfully fileupload.status.failed=Upload failed because the following file(s) do not meet all conditions: |
Multiple File Upload
To build the functionality of Follow the steps below to model a multiple file upload the following steps have to be taken:
Define a connection name as described before.
- Create an entity, e.g. 'File', in your model.
- Create at least one attribute: File.Id. For convenience add also . This attribute is needed to store the id of the file, and without this attribute this functionality does not work. When handling files it is often practical to use a few other attributes such as File.Name, File.Type and File.Size. Create these attributes too.
- Create an exposed flow.
- Create a page which is put in the flow and is connected.
Create a container of type
AQ_File_Upload
and place it on the page with the following parameters:Parameter Value Comments Connection <connection name> Persistence Temporary Mode Multiple files FileID File.Id FileName File.Name FileType File.Type FileSize File.Size - Create a container of type
AQ_InstanceSelectorPlus
.- Let the containment be: File.Id, File.Name, File.Type, File.Size, all of them read-only
- Let the parameters be: Parameter 'entity' should be 'File'.
- Let the instance selector container be the second container on the page.
- The upload container is ready to use.
...
Overview
Content Tools