File Upload organizes the transfer of a file to the Younicycle server. Working with this element requires a minimal knowledge of PHP. In addition to File Upload element, a button or some other item should be placed on the canvas to initiate the transfer of data (respond to the event onClick, for example).
Element's appearance in the work mode.
Element's appearance running (three files uploaded).
Where action_name is the name of the action created and saved in the first step.
During the run of application or page, pressing the button will send the selected files to the server. The action will get the following $ _FILES array:
[name] => checkout.jpg
[type] => image/jpeg
[tmp_name] => /home/user/www/younicycle/tmp/phpPqG94L
[size] => 7356
[name] => yellow_div.png
[type] => image/png
[tmp_name] => /home/user/www/younicycle/tmp/phpzJ2RJB
[size] => 94516
[name] => sample.pdf
[type] => application/pdf
[tmp_name] => /home/user/www/younicycle/tmp/phpFFZAN0
[size] => 31460
Where fileupload_1 is the name of the File Upload element. ,, are file indexes (in this case three files were uploaded). Each section containing these fields:
name - the name of the uploaded file
type - the type of the uploaded file
tmp_name - the server path where the file was downloaded
size - the size of the uploaded file