equal
deleted
inserted
replaced
361 } else if ( file.type === 'image/webp' && up.settings.webp_upload_error ) { |
361 } else if ( file.type === 'image/webp' && up.settings.webp_upload_error ) { |
362 // Disallow uploading of WebP images if the server cannot edit them. |
362 // Disallow uploading of WebP images if the server cannot edit them. |
363 error( pluploadL10n.noneditable_image, {}, file, 'no-retry' ); |
363 error( pluploadL10n.noneditable_image, {}, file, 'no-retry' ); |
364 up.removeFile( file ); |
364 up.removeFile( file ); |
365 return; |
365 return; |
|
366 } else if ( file.type === 'image/avif' && up.settings.avif_upload_error ) { |
|
367 // Disallow uploading of AVIF images if the server cannot edit them. |
|
368 error( pluploadL10n.noneditable_image, {}, file, 'no-retry' ); |
|
369 up.removeFile( file ); |
|
370 return; |
366 } |
371 } |
367 |
372 |
368 // Generate attributes for a new `Attachment` model. |
373 // Generate attributes for a new `Attachment` model. |
369 attributes = _.extend({ |
374 attributes = _.extend({ |
370 file: file, |
375 file: file, |