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
Use CAPs API to register generic handlers to allow developers to more
easily register own handlers
---------
Co-authored-by: Simon Kobler <32038731+KoblerS@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,9 +200,11 @@ Scan status codes:
200
200
-`Failed`: Scanning failed.
201
201
202
202
> [!Note]
203
-
> The plugin currently supports file uploads up to 400 MB in size per attachment as this is a limitation of the [malware scanning service](https://help.sap.com/docs/malware-scanning-servce/sap-malware-scanning-service/what-is-sap-malware-scanning-service). Please note: this limitation remains even with the malware scanner disabled.
204
203
> The malware scanner supports mTLS authentication which requires an annual renewal of the certificate. Previously, basic authentication was used which has now been deprecated.
205
204
205
+
> [!Note]
206
+
> If the malware scanner reports a file size larger than the limit specified via [@Validation.Maximum](#specify-the-maximum-file-size) it removes the file and sets the status of the attachment metadata to failed.
207
+
206
208
207
209
### Visibility Control for Attachments UI Facet Generation
208
210
@@ -243,6 +245,23 @@ The typical sequence includes:
243
245
1.**POST** -> create attachment metadata, returns ID
244
246
2.**PUT** -> upload file content using the ID
245
247
248
+
### Specify the maximum file size
249
+
250
+
You can specify the maximum file size by annotating the attachments content property with `@Validation.Maximum`
251
+
252
+
```cds
253
+
entity Incidents {
254
+
...
255
+
attachments: Composition of many Attachments;
256
+
}
257
+
258
+
annotate Incidents.attachments with {
259
+
content @Validation.Maximum : '20MB';
260
+
}
261
+
```
262
+
263
+
The default is 400MB
264
+
246
265
## Releases
247
266
248
267
- The plugin is released to [NPM Registry](https://www.npmjs.com/package/@cap-js/attachments).
0 commit comments