Title: Upload Folders
Last modified: September 30, 2021

---

# Upload Folders

 *  Resolved [whatspauldoing](https://wordpress.org/support/users/whatspauldoing/)
 * (@whatspauldoing)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/upload-folders-3/)
 * 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)

 *  Plugin Author [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/upload-folders-3/#post-14933994)
 * Hi [@whatspauldoing](https://wordpress.org/support/users/whatspauldoing/) !
 * Here is Matthew 😊
 * Can you please send the complete path to the file where you applied the patch?
 * I will close this support thread for now as the issue seems to be solved.

Viewing 1 replies (of 1 total)

The topic ‘Upload Folders’ is closed to new replies.

 * ![](https://ps.w.org/wplr-sync-folders/assets/icon-128x128.png?rev=1896274)
 * [WP/LR Sync Folders with Real Media Library](https://wordpress.org/plugins/wplr-sync-folders/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wplr-sync-folders/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wplr-sync-folders/)
 * [Active Topics](https://wordpress.org/support/plugin/wplr-sync-folders/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wplr-sync-folders/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wplr-sync-folders/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/upload-folders-3/#post-14933994)
 * Status: resolved