Skip to content

Support for WebP image uploadsΒ #1055

@simohammedhttp

Description

@simohammedhttp

πŸ”– Feature description

Hi,

I have a question regarding image uploads in Postiz.

When I try to upload a WebP image, I receive the following errors:

Frontend (UI):
File type "image/webp" is not allowed. Allowed types: image/,video/mp4

API:
{"message":["posts.0.value.0.image.0.File must have a valid extension: .png, .jpg, .jpeg, .gif, or .mp4"],"error":"Bad Request","statusCode":400}

I’m currently using Postiz v2.7.0.

WebP is a widely supported and efficient image format, so it would be great if uploads for this format were allowed. It should comply with the expected MIME type pattern (image/).

πŸ‘‰ Feature request:
Please add support for uploading .webp images (both in the UI and API).

Alternatively, if there’s already a configuration option to extend the list of allowed file types, could you document how to do that?

Thanks for your work on this project β€” WebP support would really help modernize image handling!

🎀 Why is this feature needed ?

WebP is a modern, efficient image format that provides smaller file sizes and better quality compared to JPEG or PNG. Allowing WebP uploads would improve performance, reduce bandwidth usage, and align Postiz with current web standards.

✌️ How do you aim to achieve this?

Add .webp to the list of accepted file extensions and MIME types (image/webp) in both the frontend validation and API upload handler.

πŸ”„οΈ Additional Information

No response

πŸ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

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