This repository was archived by the owner on Jan 30, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +30
-5
lines changed
Expand file tree Collapse file tree 4 files changed +30
-5
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,12 @@ export default function FooterArea({
239239 } else if ( ! isImage && ! isVideo && file . size > maxOtherSizeInBytes ) {
240240 addAlert ( 'The maximum allowed size is 20 MB' , 'warning' ) ;
241241 continue ;
242- } else if ( isImage && file . type !== 'image/gif' && file . type !== 'image/svg+xml' ) {
242+ } else if (
243+ isImage &&
244+ file . type !== 'image/gif' &&
245+ file . type !== 'image/svg+xml' &&
246+ file . type !== 'image/webp'
247+ ) {
243248 try {
244249 const cleaned = await Utils . stripImageMetadata ( file ) ;
245250 validFiles . push ( cleaned ) ;
Original file line number Diff line number Diff line change @@ -226,7 +226,12 @@ export default function InputArea({
226226 } else if ( ! isImage && ! isVideo && file . size > maxOtherSizeInBytes ) {
227227 addAlert ( 'The maximum allowed size is 20 MB' , 'warning' ) ;
228228 continue ;
229- } else if ( isImage && file . type !== 'image/gif' && file . type !== 'image/svg+xml' ) {
229+ } else if (
230+ isImage &&
231+ file . type !== 'image/gif' &&
232+ file . type !== 'image/svg+xml' &&
233+ file . type !== 'image/webp'
234+ ) {
230235 try {
231236 const cleaned = await Utils . stripImageMetadata ( file ) ;
232237 validFiles . push ( cleaned ) ;
Original file line number Diff line number Diff line change @@ -313,7 +313,12 @@ export default function CreateContent({
313313 setIsCompressing ( false ) ;
314314 }
315315 }
316- } else if ( isImage && file . type !== 'image/gif' && file . type !== 'image/svg+xml' ) {
316+ } else if (
317+ isImage &&
318+ file . type !== 'image/gif' &&
319+ file . type !== 'image/svg+xml' &&
320+ file . type !== 'image/webp'
321+ ) {
317322 try {
318323 const cleaned = await Utils . stripImageMetadata ( file ) ;
319324 validFiles . push ( cleaned ) ;
Original file line number Diff line number Diff line change @@ -249,7 +249,12 @@ export default function ContentCreateArticle({
249249 } finally {
250250 setIsCompressing ( false ) ;
251251 }
252- } else if ( isImage && file . type !== 'image/gif' && file . type !== 'image/svg+xml' ) {
252+ } else if (
253+ isImage &&
254+ file . type !== 'image/gif' &&
255+ file . type !== 'image/svg+xml' &&
256+ file . type !== 'image/webp'
257+ ) {
253258 try {
254259 processedFile = await Utils . stripImageMetadata ( file ) ;
255260 } catch ( e ) {
@@ -384,7 +389,12 @@ export default function ContentCreateArticle({
384389 } finally {
385390 setIsCompressing ( false ) ;
386391 }
387- } else if ( isImage ) {
392+ } else if (
393+ isImage &&
394+ file . type !== 'image/gif' &&
395+ file . type !== 'image/svg+xml' &&
396+ file . type !== 'image/webp'
397+ ) {
388398 try {
389399 processedFile = await Utils . stripImageMetadata ( file ) ;
390400 } catch ( e ) {
You can’t perform that action at this time.
0 commit comments