cloudverve / wordpress-cloud-media-offloader-plugin

A simple plugin that allows you to serve your WordPress Media Library files from the Backblaze B2 cloud storage service.
GNU General Public License v2.0
65 stars 14 forks source link

Adds trailing slash and file deletion #10

Open sitedart-studio opened 5 years ago

sitedart-studio commented 5 years ago

Versions

Description of Issue/Request

When an image is uploaded, there is an HTTP ERROR. Then the file path looks like so...

https://cdn.mywebsite.com/file/BucketName//2019/01/image-name.jpg

A trailing slash before the actual folder in the bucket. This only happens if you leave the optional path empty. I was able to fix by adding a folder name (wp-media)...

https://cdn.mywebsite.com/file/BucketName/wp-media/2019/01/image-name.jpg

Also having issues deleting an image if the path is incorrect. Once the proper path is added, then it works.