• Resolved whatspauldoing

    (@whatspauldoing)


    Hello!

    Loving the plugin, thank you, it’s just what my client needs, however…

    Having just updated the plugin I found that on syncing new collections, with the “Use Capture Date” ticked, the GUID in the database was not matching the path to the uploaded file.

    I had a look in core.php and found in the function sync_media_add() that while there is a check to see if that flag is set and altering the upload destination $upload_dir accordingly, when the post data is added the GUID field used $wp_upload_dir instead, which was causing, at least for the way I’m using it, missing images on the page.

    I’ve unticked the box in the settings page and it’s working fine now.

    But it might be worth looking at changing line 1149 from:
    ‘guid’ => $wp_upload_dir[‘url’] . ‘/’ . basename( $newpath ),
    to:
    ‘guid’ => $upload_dir[‘url’] . ‘/’ . basename( $newpath ),

    I’ve tested this change with the “use capture date” ticked and it’s working.

    Not sure if there’s anything similar in update functions, but this fix has worked for me.

    Thanks again, it’s a great plugin.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Upload Folders’ is closed to new replies.