Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Unrestrict Filetypes on Drag-and-Drop file uploads #68

@viscountexx

Description

@viscountexx

Description of the issue

WebP images are labeled as an "invalid file type" when you drag and drop them into the UI. However, if you use the usual file upload dialogue, they do work and are uploadable in Mastodon 4.1.4.

How you found the issue

Steps to reproduce the behavior:

  1. Drag & drop a WebP image over the post box.
  2. Observe that it says "invalid filetype"
  3. Click the image upload button
  4. Upload the same image successfully.

What you expected to happen

Both drag and drop and file upload should be consistent with eachother.

I think this check should probably not even be being made clientside, since supported filetypes for upload will vary per instance as time goes on and Mastodon and other software that supports the Mastodon API changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    💥 brokenSomething that is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions