Score:0

Can't add an image extension to the field_image of the Article content type

gb flag

I need to upload an image with the webp extension and add it as the main image of a content item with the "Article" content type. Since its field_image doesn't have the webp extension by default, I've added the extension to the "Allowed file extensions" input at the managing tab of the field_image.

When I check the row with the name='field.field.node.article.field_image' in the config DB table, I see that the extension was successfully added to the data array under the keys ['settings']['file_extensions'].

But when I try to upload and add an image with the webp extension on the editing page of the article I still receives the error that only png, gif, jpg and jpeg are allowed.

How to resolve the problem?

ps. Drupal 8.7.3

Score:2
cn flag

Drupal 8.7 does not support WebP.

You can:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.