Topic: problem uploading post

Posted under Site Bug Reports & Feature Requests

im trying to upload something but when i click upload i get an error saing "error: ActiveRecord::RecordInvalid - Validation failed: File ext image/webp is invalid (only jpg, png, gif, webm, and mp4 files are allowed)"

not sure what all that means but my image is a png

valll~ said:
not sure what all that means but my image is a png

Most likely case is that the image isn't actually a png and wherever you downloaded it from renamed the file extension without actually re-encoding it. It's a reasonably common tactic that websites use since browsers don't actually care about the file extension and will instead read the headers and render the image correctly anyway.

Sometimes webp images are used as samples and the original png can still be downloaded (e.g. Newgrounds) while other times it'll just have to be converted into a png, since e621 doesn't accept webp uploads.

valll~ said:
im trying to upload something but when i click upload i get an error saing "error: ActiveRecord::RecordInvalid - Validation failed: File ext image/webp is invalid (only jpg, png, gif, webm, and mp4 files are allowed)"

not sure what all that means but my image is a png

What website did you download that from? You might want to check howto:sites and sources to see how to properly download from certain websites.

valll~ said:
im trying to upload something but when i click upload i get an error saing "error: ActiveRecord::RecordInvalid - Validation failed: File ext image/webp is invalid (only jpg, png, gif, webm, and mp4 files are allowed)"

not sure what all that means but my image is a png

Doesn't sound like it, but if you're trying to upload an animated PNG, then it has to be renamed from .APNG to .PNG. But it sounds like you have non-PNG image with PNG extension.

faucet said:
Most likely case is that the image isn't actually a png and wherever you downloaded it from renamed the file extension without actually re-encoding it. It's a reasonably common tactic that websites use since browsers don't actually care about the file extension and will instead read the headers and render the image correctly anyway.

Sometimes webp images are used as samples and the original png can still be downloaded (e.g. Newgrounds) while other times it'll just have to be converted into a png, since e621 doesn't accept webp uploads.

Kind of hilarious since WebM is the preferred video format since forever.

manitka said:
Webp, not webm

Yeah, but they're related standards. So the video container was supported, but not the image one.

alphamule said:
Yeah, but they're related standards. So the video container was supported, but not the image one.

Just a matter of time.

It took a long time for gif to become adopted, the same for webp.

Many softwares don’t have support for webp, and it being technically owned by google is also a small point that drives people away.

I hate webp because I always have to convert them if I need them as a reference because like none of my programs support it. But when they become more supported I can see it being useful, as it has many upsides.

Although I’ll probably just stick with a good ol’ png

Donovan DMC

Former Staff

manitka said:
Many softwares don’t have support for webp

The web usability is all that should really matter, and its full compatibility is slightly higher than webm

Both hit 95% with partial support

The only browser that doesn't support webp is IE, but that also doesn't support webm

problem solved, got a better file of the image from the artist

Original page: https://e621.net/forum_topics/59474