• Recently updated our Add From Server install to 3.3.1, since then when we add a file, it goes through correctly and appears in the media window with the correct file path on the right (as in it links to https://…./uploads/2015 etc)
    However when another plugin pulls the path to encode a video file, it fails as the string is listed as the full path and then the upload path twice (drive:/websitepath/wp-content/uploads/2015/filename//uploads/2015/filename)

    When I have looked into the SQL database all previous files imported under _wp_attached_file have the path that starts from the date so it is 2015/11/filename
    All the ones after the update are listed as (drive:/websitepath/wp-content/uploads/2015/filename) which is then incorrect for other software trying to use it

    Is this a recent change? Should the wp_attached_file attribute list the drive letter and full path or not? Is this not a security risk

    https://www.ads-software.com/plugins/add-from-server/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dion Hulse

    (@dd32)

    Meta Developer

    This is a known issue with Windows servers which will fix itself with WordPress 4.4, If you’ve got a path in the Settings of the plugin, make sure you’ve got a Capital driver letter, d:\... will cause issues where as D:\... won’t.

    You can also install the latest nightly of the Add From Server plugin which should also have the issue worked around, which I’ll be releasing later this week.

    Thread Starter iotimelapse

    (@iotimelapse)

    Hi Dion,
    This has sorted the issue temporarily by changing it to upper case, and hopefully the 4.4 release will clear it permanently
    Thanks for your help ,was easier than I thought!
    Jay

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incorrect wp_attached_file’ is closed to new replies.