-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
π 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