• When I try to replace SVG file it just deletes the old one and does not upload the new one.

    I’m using “Safe SVG” plugin to allow .svg uploads.

Viewing 1 replies (of 1 total)
  • Problem is when re-generating other sizes, as SVG is treated as an image. This can be solved by simply checking whether the file is svg or not. Line 353 file: class-easy-media-replace-admin.php.

    if ($size['mime-type'] != 'image/svg+xml') {
       unlink(dirname($old_file_path) . '/' . $size['file']);
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Does not replace SVG files’ is closed to new replies.