Creates wierd directory when using google storage
-
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)
Viewing 1 replies (of 1 total)
The topic ‘Creates wierd directory when using google storage’ is closed to new replies.