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
- Added support for the `@Validation.Maximum` annotation to define the maximum allowed file size for attachments:
18
+
```cds
19
+
annotate my.Books.attachments with {
20
+
content @Validation.Maximum: '2MB';
21
+
}
22
+
```
23
+
24
+
### Fixed
25
+
26
+
- Removed the previous hard limit of `400 MB` for file uploads. Files exceeding this size may still fail during malware scanning and will be marked with a `Failed` status.
27
+
- Resolved issues with generic handler registration, enabling services to intercept the attachments plugin using middleware.
Copy file name to clipboardExpand all lines: README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,6 +262,39 @@ annotate Incidents.attachments with {
262
262
263
263
The default is 400MB
264
264
265
+
### Restrict allowed MIME types
266
+
267
+
You can restrict which MIME types are allowed for attachments by annotating the content property with `@Core.AcceptableMediaTypes`. This validation is performed during file upload.
0 commit comments