Skip to content

Commit

Permalink
Media Utils: Removes security warning on filetype upload failure mess…
Browse files Browse the repository at this point in the history
…age. (#36226)
  • Loading branch information
antpb authored Nov 5, 2021
1 parent c0d1511 commit 921e3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/media-utils/src/utils/upload-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export async function uploadMedia( {
triggerError( {
code: 'MIME_TYPE_NOT_ALLOWED_FOR_USER',
message: __(
'Sorry, this file type is not permitted for security reasons.'
'Sorry, you are not allowed to upload this file type.'
),
file: mediaFile,
} );
Expand Down

0 comments on commit 921e3ec

Please sign in to comment.