Skip to main content
  Thursday, December 23 2021
  1 Replies
  224 Visits
  Subscribe
Possible to combine your two features "Physical Folders" and "Synchronize Server Folders"?

Can the two features Physical Folders and Synchronize Server Folders be used in conjunction? I studied your presentation and documentation material on them, but it tells nowhere.

In other words: Is it possible to move files and folders within a monitored server-directory and get the folder and file structure changes synchronized to the wp-media managed directory? And not in a flat fashion (with hierarchy only persisted in taxonomy) but the folder changes replicated there too? Consider this folder structure:

My computer working directory synced via SFTP to a Server Folder:

/sync-root-dir/drive
/hiking/
ground.jpg
person.jpg
shoes.jpg
/soccer/
ball.jpg
ground.jpg
shoes.jpg


WP media directory managed by WP Media Folder with Physical Folders activated:

/wp-media-dir/
/hiking/ # Wordpress'es autogenerated responsive images nearby
person.jpg sweaty-person-320px.jpg sweaty-person-720px.jpg
shoes.jpg shoes-320px.jpg shoes-720px.jpg
/soccer/
ball.jpg ball-320px.jpg ball-720px.jpg
shoes.jpg shoes-320px.jpg shoes-720px.jpg


When using Synchronized Folder Servers:
…how is an operation within "/sync-root-dir/" will be replicated in "/wp-media-dir/" :

  1. Move "/sync-root-dir/hiking/person.jpg" to "/sync-root-dir/soccer/person.jpg".
  2. Move "/sync-root-dir/hiking/shoes.jpg" to "/sync-root-folder/soccer/shoes.jpg" as a file overwrite operation.
  3. Rename "/sync-root-dir/hiking/ground.jpg" to "/sync-root-dir/hiking/grass.jpg" and then move it to "/sync-root-folder/soccer/grass.jpg".


How are the filepaths when using cloud file services?
The Dropbox Sync feature description mentions "Determine if your media links are public (accessible through a link) or remain private".

What does this mean concretely for the HTML output for "<img>" and its "src" attribute?

Private: src="/wp-content/uploads/1a-start.jpg"

Public: src="https://www.dropbox.com/s/px1pk2vndl2wyc9/1a-start.jpg"


MY USE CASES AND PURCHASE MOTIVATION

My main reason to purchase WP Media Folder is that the flat file structure of the Wordpress media library very quickly reaches the limits in term of usability (you finding your stuff) and SEO-optimization (possibly non-telling short filenames, filename collisions being auto resolved with non-telling and ugly "-2" "-3" suffixes).

I have a lot of picture stories per intended project-page with order prefixes like "1 start" "2a open file" "2b dialog opens" etc. This translated into a flat structure without the project specific prefix is pretty useless:

1. Bad usabilioty during upload/managing/inserting: Plenty unrelated files with a prefix of small numbers like "1" or "2" are nearby if sorting my name.
- To remedy this alone I could use free plugins like FileBird, they even have a gallery block.
2. For SEO and semantic link sharing (messengers, social media)
- Non-telling paths like "/1-start.png", "/1-start-2.png" (WP auto resolved ugly name collison), "/2a-open-file.png"
- As opposed to "/myProjectName/1-start.png", "/myProjectName/2a-open-file.png", "/otherProject/1-start.png" etc.
3. Manual process of recreating folder structures in WP plugins and uploading files.
- Tedious. Error prone.
- Why not local folders on your computer and sync via cloud services like Dropbox & Co or to the webhost via SFTP/ssh/rsync/etc.
3. I want to avoid encoding project folder names as prefixes into flat file names like "/My-Project-Name-1-start.png". Because if I want to change "My-Project-Name" to i.e. "My-Best-Project" I'd have to rename all files, and also using batch operations like filename to caption, I would need to remove the redundant "My-Project-Name" prefix manually per each file again, etc.
- Could be done quite well with batch/regex tools like WP Sheet Editor, but again, why not proper the first way?

WP Media Folder seems to address all these problems in an integrated way. Attractive! 👍
A
2 years ago
Hi,

Thanks for contacting us here about this extension.

Possible to combine your two features "Physical Folders" and "Synchronize Server Folders"?


These 2 features can not be combined in our plugin.


How are the filepaths when using cloud file services?
The Dropbox Sync feature description mentions "Determine if your media links are public (accessible through a link) or remain private".

What does this mean concretely for the HTML output for "<img>" and its "src" attribute?

Private: src="/wp-content/uploads/1a-start.jpg"
which if requested then gets HTTP-forwarded to a Cloud Service UID link like "https://www.dropbox.com/s/px1pk2vndl2wyc9/"
which itself has a virtual filename "1a-start"
so "https://www.dropbox.com/s/px1pk2vndl2wyc9/1a-start.jpg"

Public: src="https://www.dropbox.com/s/px1pk2vndl2wyc9/1a-start.jpg"


The cloud files URL should be:

Private: https://wordpress.com/wp-admin/admin-ajax.php?action=wpmf-dbxdownload-file&id=id%3ApCZh-nAOwuEAAAAAAAAM9Q&link=true&dl=0...
Public: https://www.dropbox.com/s/fbhuunjoeut1mfb/sample-image.png?dl=0&raw=1


Hope it helps!
Best Regards,
  • Page :
  • 1
There are no replies made for this post yet.