Introduction

Account

Web System Common Tools

Web System Applications Development

 Web System Database Web System PostgreSQL Tables Web System Manage fields Web System Manage constraints Web System Manage indexes Web System Manage triggers Web System SQL Tab Web System Single-row editing Web System Multirow editing in table mode Web System Import Web System Export Web System Table transfer - or Store Web System Composite Types Web System SQL Queries Web System Workflow Web System Dataset Design Web System Query Expressions Web System Where Conditions Web System Group by Expressions Web System Having Condition Web System Windows Clause Web System Order by Expressions Web System SQL Tab Web System Test a Query Web System Views Web System Functions Web System Datasources Web System Charts Web System Main type selection Web System Subtype selection Web System Datasource selection Web System General settings Web System Axis settings Web System Background settings Web System Margin settings Web System Color settings Web System Mark settings Web System QR Barcodes Web System Saving Web System Reports Web System Template Editor GYRE Web System Sections Web System Toolbar Web System Basic properties Web System Data formatting Web System Text Web System Data Web System Macro Web System Geometry Web System Line Web System Bezier curve Web System Image Web System Chart Web System Arrangement Web System Clipboard Web System History Web System Zoom Web System Import/export Web System Delete Web System Report Generator Web System Report Schedule Web Site Builder Web System Content Management System (CMS) Web System Edit site Web System Themes and pages Web System Create and edit theme Web System Edit page Web System Web Form Builder / Content Editor (GYRE) Web System Toolbar Web System Events Web System Basic properties Web System Text field Web System Button Web System List Web System Combobox Web System Label Web System Checkbox Web System Radiobutton Web System Filler Web System Upload file Web System Additional tools (Gears) Web System Image Web System Flash video Web System Arrangement Web System Clipboard Web System History Web System Zoom Web System Import/export Web System Delete Web System Operations with objects Web System DNS Manager Web System SEO tools Web System App Analyzer Web System Reindex Web System Publish Web System Access Log Web System Checkout settings Web System PHP Scripts development (Actions) Web System Source Editor Web System API functions Web System Custom Scripts development (JS, CSS, XML, etc...) Web System Gears Web System SaaS Solution Manager

Web System Cook book

Web System Deprecated

Web System Upload file

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).

Work order:

  1. In Actions (see (ref: 79)) add the action that will process the uploaded data.
  2. In the Event editor of onClick button add the following line:

executeActionSendAll('action_name');
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:

[fileupload_1]
   [0]
       [name] => checkout.jpg
       [type] => image/jpeg
       [tmp_name] => /home/user/www/younicycle/tmp/phpPqG94L
       [size] => 7356
   [1]
       [name] => yellow_div.png
       [type] => image/png
       [tmp_name] => /home/user/www/younicycle/tmp/phpzJ2RJB
       [size] => 94516
   [2]
       [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. [0],[1],[2] 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