Support » Plugin: Safe SVG » Creates wierd directory when using google storage

  • Resolved georgerujoiu

    (@georgerujoiu)


    If you use this plugin with wp-stateless it creates a “/” and then inside it year and month directories, this is due to the relative path not beeing properly formated , it’s actually an absolute path.

    $relative_path = str_replace( $upload_dir[‘basedir’], ”, $svg_path );

    I think you need to left trim the forward slash on this line. Tested and it works for me, not sure if it causes other issues though.

Viewing 1 replies (of 1 total)
  • Plugin Author Daryll Doyle

    (@enshrined)

    Thanks @georgerujoiu,

    I’ve not personally used wp-stateless but I have used other offloading plugins and it seems to work fine with those.

    I’ll look into this though, and see if I can find a solution going forward.

    Thanks for the heads up!

    Cheers,
    Daryll

Viewing 1 replies (of 1 total)
  • The topic ‘Creates wierd directory when using google storage’ is closed to new replies.