File upload

Single file upload component. File content will be saved in the dataprovider.

Content under construction

Table of contents

Getting uploaded file name and mime type

To get the name and mime type of the uploaded file, you need to create form variables, on the component's parent form, with the following names, 'dataprovider_filename' and 'dataprovider_mimetype', where 'dataprovider' is the dataprovider name of the component. These form variables will be filled with the right values after the file is uploaded. Ex.: you have a fileupload component, with dataprovider : 'picture', after the upload, if the form variables 'picture_filename' and 'picture_mimetype' exits, they will have the uploaded file name and mime type.

File upload properties

File upload properties can be found here.

File upload events

File upload events can be found here.

The following articles are recommended for additional reading

Last updated