Skip to content

[2.x] Improve error messaging for unsupported file types in "appearance" #4429

@claudiushenrichs

Description

@claudiushenrichs

Current Behavior

Uploading an SVG image shows a generic "Oops! Something went wrong." error toast.

Steps to Reproduce

  1. Go to Administration -> Appearance
  2. In the "Logo" section (Labelled "Upload an image to be displayed in place of the forum title."):
    2a. try to upload and SVG
    2b. try to upload a non image file like a PDF

Expected Behavior

The error message for unsupported (image) file types should state something more clearly like "The uploaded file is note supported. Upload images as WEBP, PNG, JPEG"

Screenshots

Image

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions