You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/appstore/use-content/platform-supported-content/modules/file-uploader.md
+15-19Lines changed: 15 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,11 @@ In the following sections, the term "context entity" refers to the entity of the
26
26
For a simple setup, the context entity needs to be a specialization of the **FileUploader.FileUploadContext** entity. This allows you to use the nanoflows and entities provided with the module:
27
27
28
28
***In your domain model**:
29
-
* Set the generalization of the context entity to **FileUploader.FileUploadContext**.
29
+
1. Set the generalization of the context entity to **FileUploader.FileUploadContext**.
30
30
***On your page**:
31
-
* Place the **FileUploader** widget.
32
-
* Set the **Associated files** property to **FileUploader.UploadedFile** or **FileUploader.UploadedImage**, depending on the upload mode.
33
-
* Set the **Action to create new files** property to one of the nanoflows shipped with the module, depending on the upload mode.
31
+
1. Place the **FileUploader** widget.
32
+
1. Set the **Associated files** property to **FileUploader.UploadedFile** or **FileUploader.UploadedImage**, depending on the upload mode.
33
+
1. Set the **Action to create new files** property to one of the nanoflows shipped with the module, depending on the upload mode.
34
34
35
35
{{% alert color="info" %}}
36
36
Starting with File Uploader 2.0, the widget properties will be set automatically.
@@ -41,14 +41,14 @@ Starting with File Uploader 2.0, the widget properties will be set automatically
41
41
For an advanced setup, useful when modifying the context entity is not possible, follow these steps:
42
42
43
43
***In your domain model**:
44
-
* Create a new specialized image/file entity by setting its generalization to **System.FileDocument** or **System.Image**, depending on the upload mode.
45
-
* Create a **\*-1** association from this image/file entity to your context entity.
46
-
***In the App explorer / Logic editor**:
47
-
* Copy one of the two Nanoflows (depending on the upload mode) from the module and modify it to use your context entity and the newly created file/image entity.
44
+
1. Create a new specialized image/file entity by setting its generalization to **System.FileDocument** or **System.Image**, depending on the upload mode.
45
+
1. Create a `**\*-1**` association from this image/file entity to your context entity.
46
+
***In the App Explorer / Logic Editor**:
47
+
1. Copy one of the two nanoflows (depending on the upload mode) from the module and modify it to use your context entity and the newly created file/image entity.
48
48
***On your page**:
49
-
* Place the **FileUploader** widget.
50
-
* Set the widget property **Associated files** to the newly created file/image entity.
51
-
* Set the widget property **Action to create new files** to the modified nanoflow.
49
+
1. Place the **FileUploader** widget.
50
+
1. Set the widget property **Associated files** to the newly created file/image entity.
51
+
1. Set the widget property **Action to create new files** to the modified nanoflow.
52
52
53
53
### Widget Configuration
54
54
@@ -65,7 +65,7 @@ For an advanced setup, useful when modifying the context entity is not possible,
65
65
* By default, use **FileUploader.UploadedFile** for upload mode Files and **FileUploader.UploadedImage** for upload mode Images.
66
66
67
67
{{% alert color="info" %}}
68
-
Note: Starting with File Uploader v2.0, the widget properties will be set automatically.
68
+
Starting with File Uploader 2.0, the widget properties will be set automatically.
69
69
{{% /alert %}}
70
70
71
71
##### Action to Create New Files
@@ -74,7 +74,7 @@ Note: Starting with File Uploader v2.0, the widget properties will be set automa
74
74
* By default, call **Nanoflow ACT_CreateUploadedFileDocument** for upload mode Files and **ACT_CreateUploadedImageDocument** for upload mode Images.
75
75
76
76
{{% alert color="info" %}}
77
-
Note: Starting with File Uploader v2.0, the widget properties will be set automatically.
77
+
Starting with File Uploader 2.0, the widget properties will be set automatically.
78
78
{{% /alert %}}
79
79
80
80
##### Action to Create New Files
@@ -93,20 +93,16 @@ This configuration is to sets a maximum limit on the file size of uploaded files
93
93
94
94
Configure the displayed text used in **File Uploader**.
95
95
96
-
97
96
### Nanoflows
98
97
99
98
This module includes two predefined nanoflows:
100
99
101
100
#### ACT_CreateUploadedFileDocument
102
101
103
-
This nanoflow will attaches an uploaded file to the context object.
102
+
This nanoflow will attach an uploaded file to the context object.
104
103
105
104
#### ACT_CreateUploadedImageDocument
106
105
107
-
This nanoflow will attaches an uploaded image to the context object.
108
-
109
-
110
-
106
+
This nanoflow will attach an uploaded image to the context object.
0 commit comments