Skip to content

[BMP] Upload failed: File type not allowed #3063

Description

@zaochih

Description

Similar to #2602

Currently there are only "image/png", "image/jpeg", "image/gif", "image/webp", "image/avif" MIMEs allowed for images, and uploading a bitmap image will lead to "File type not allowed" exception.

Same as AVIF, bitmap is also safe and will not bring stored XSS like svg.

Steps to reproduce

  1. Go to any media section
  2. Upload a bitmap image
  3. Upload failed: File type not allowed

Environment

"emdash": "0.36.0",

Screenshots

A screenshot shows 'Upload failed: File type not allowed'

Logs / error output

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions