Wiki source code of Upload
Hide last authors
author | version | line-number | content |
---|---|---|---|
16.2 | 1 | {{panel float="right"}} | |
2 | (% class="block text-align-center%){{ficon name="XUpload" size="4em"/}} | ||
1.1 | 3 | ||
21.1 | 4 | (% class="block%)The icon for form elements of type //Upload//. | |
16.2 | 5 | {{/panel}} | |
6 | |||
21.1 | 7 | == Functionality == | |
1.1 | 8 | ||
21.1 | 9 | Form elements of type //Upload// add an upload element to the form for uploading files that will be send together with the form data when the form is submitted. You can also add a label in the properties panel //label// of the {{designer/}}. | |
1.1 | 10 | ||
21.1 | 11 | {{figure image="designer_element_upload_properties_base_en.png"}} | |
12 | Additional base properties for upload elements, such as the image preview. | ||
2.1 | 13 | {{/figure}} | |
1.1 | 14 | ||
16.2 | 15 | {{figure image="designer_element_upload_image_preview.png"}} | |
21.1 | 16 | When the image preview is enabled and the user select an image, a thumbnail of that image is shown. When the user select a file other than an image, a general icon is shown. | |
16.2 | 17 | {{/figure}} | |
18 | |||
1.1 | 19 | {{internBaseOptionsElement page="base"}} | |
20 | {{table dataTypeAlpha="0" colWidth="-500"}} | ||
21.1 | 21 | |=Name|=Description | |
22 | |Image preview|When checked, displays a thumbnail of the file the user selected. For image files this is a scaled down version of that image. For other files, a file icon is shown. | ||
1.1 | 23 | {{/table}} | |
24 | {{/internBaseOptionsElement}} | ||
25 | |||
21.1 | 26 | {{figure image="upload_constraints_en.png"}} | |
27 | The constraints let you restrict the allowed file types and the maximum file size. | ||
16.2 | 28 | {{/figure}} | |
1.1 | 29 | ||
30 | {{internBaseOptionsElement page="cond"}} | ||
31 | {{table dataTypeAlpha="0" colWidth="-500"}} | ||
21.1 | 32 | |=Name|=Description | |
33 | |Max. size|Maximum size for the uploaded file in kilobytes. | ||
34 | |Extensions|Comma separated list of allowed file extensions the user may upload. Only files with the given extensions may be uploaded by users. File extenstions may start with or without a dot. For example //pdf// or //.pdf// will restrict uploads to PDF files. | ||
1.1 | 35 | {{/table}} | |
36 | {{/internBaseOptionsElement}} | ||
37 | |||
16.2 | 38 | {{figure image="designer_element_upload_properties_label_de.png"}} | |
21.1 | 39 | You can also specify a file name to be used instead of the original file name. | |
2.1 | 40 | {{/figure}} | |
1.1 | 41 | ||
42 | {{internBaseOptionsElement page="label"}} | ||
43 | {{table dataTypeAlpha="0" colWidth="-500"}} | ||
21.1 | 44 | |=Name|=Description | |
45 | |File name|When no name is specified, the uploaded file will be saved with its original name. Otherwise, this name is used for saving the file on the server. | ||
1.1 | 46 | {{/table}} | |
47 | {{/internBaseOptionsElement}} | ||
48 | |||
49 | {{internBaseOptionsElement page="css"/}} | ||
50 | |||
51 | {{internBaseOptionsElement page="attr"/}} | ||
52 | |||
53 | {{internBaseOptionsElement page="avail"/}} | ||
54 | |||
55 | {{internBaseOptionsElement page="ronly"/}} | ||
56 | |||
57 | {{internBaseOptionsElement page="misc"/}} | ||
58 | |||
59 | {{content moveToTop="true"/}} |