Skip to content

Adds trailing slash and file deletion #10

@sitedart-studio

Description

@sitedart-studio

Versions

  • Cloud Media Offloader: 0.8.0
  • WordPress: 5.0.3
  • PHP: 7.1
  • Hosting Environment (ie, Windows, Linux): Linux, Cpanel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions