Skip to content

Commit 39f13d0

Browse files
docs(upload): improve description wording
1 parent 225583f commit 39f13d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docusaurus/docs/cms/features/media-library.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,10 @@ export default {
330330

331331
#### Security
332332

333+
The Upload plugin validates files based on their actual MIME type rather than the declared file extension.
334+
Only files matching the defined security rules are uploaded; others are filtered out.
333335

334-
Configures validation rules for uploaded files to enhance media security.
336+
The `security` configuration provides two options: `allowedTypes` or `deniedTypes`, which let you control which file types can or cannot be uploaded.
335337

336338
:::note
337339
It's best to define either `allowedTypes` or `deniedTypes`, not both, to avoid conflicts in file validation logic.

0 commit comments

Comments
 (0)