• System:

    • WP Multisite
    • Path: Default wp-content/uploads/
    • Year/Month: ON
    • Object Versioning: OFF

    When adding SVG file to Media Library and offloading it to S3, the plugin stores SVG in path format below:
    https://s3.amazonaws.com/%5BS3 Bucket]/wp-content/uploads/sites/1341/1341/20/Voted-Best.svg
    Seems like it is appending the site ID twice and added a weird 20 into the path. In fact, when I check the same uploaded file in my local server, it is saved in the correct path:
    wp-content/uploads/sites/1341/2019/05/Voted-Best.svg
    This only happens to SVG file but other files like JPG works fine.

    I am not sure if this is a bug in WP Offload Media or somehow our customization in other part of WP affects WP Offload Media. If it is not a bug from the plugin, can someone please let me know which part of the code in WP Offload Media might be handling this S3 path changes?

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Contributor ianmjones

    (@ianmjones)

    The double site IDs in path when IDs are between 1000 and 9999 was fixed in WP Offload Media (Lite) v2.1.1.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin Adds Extra Numbers to S3 Path When Offloading SVG File’ is closed to new replies.