Skip to content

Commit

Permalink
fix: restrict media to only image mime types (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm committed Feb 4, 2025
1 parent af0387b commit 6685d48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/cms/src/collections/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export const Media = {
staticDir: !useCloudStorage()
? path.resolve(__dirname, "../../uploads/media")
: undefined,
// For audio and _especially_ video, please redirect to using something like YouTube
mimeTypes: ["image/*"],
},
fields: [
{
Expand Down

0 comments on commit 6685d48

Please sign in to comment.