Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Alan,
    Apologies for the delay in getting back to you. Bingo!! Thank you so much! I confirm that Relocate Upload 0.13, with the corrections you indicated, is working for me on WP 2.8.
    Thank you again!

    So sorry about the confusing previous note – I left out a directory level out in the previous explanation. Anyhooow, here’s my update…

    Question: Should the RU 0.13 folders be sub-folders of ‘wp-content/uploads/’?
    I have setup two sub-folders, ‘dir1’ and ‘dir2’, in ‘uploads’ and defined these in the RU 0.13 settings.

    I have simplified my setup, viz:

    1) WordPress URL in the WP 2.8 General settings is: http://mydomain.com/dev/ddnt

    2) RU 01.3 Settings
    Default Location: /dev/ddnt/wp-content/uploads
    Directory A: /dev/ddnt/wp-content/uploads/dir1/
    Directory B: /dev/ddnt/wp-content/uploads/dir2/

    3) Media Library GUI lets me move files from the ‘Default Location’ to ‘Directory A’ or ‘Directory B’

    4) The Media Library Edit view shows that files I move have updated File URLs:
    http://mydomain.com/dev/ddnt/wp-content/uploads/dir1/file1.jpg

    5) WP 2.8 _posts Table shows that the GUID is the exact same string as (4). So RU _is_ updating the GUID, and this is being reported correctly in the Media Library Edit view.

    6) Media Library GUI filter “Directory A” returns NO files.
    Media Library GUI filter “All folders” returns ALL files including ‘file1.jpg’ which
    is in the RU subfolder ‘dir1’

    thanks again,
    …fn

    Hi Alan,
    Thank you for the speedy response.
    As reported in my initial post “(2) when I reselect Edit in the Media Library, the File URL reflects the new directory path to the recently moved file.”

    I am now re-checking the MySQL _posts table… Ahhh!

    OK, so I confirm that the GUID is updated when a file is moved using RU 0.13, and the updated GUID in the MySQL _posts Table matches exactly what is reported in the Media Library Edit GUI’s “File URL” field. And these updated GUIDs do indeed work – connecting to them in a browser displays the media file.

    However I defined the RU folders in the RU 01.3 Settings page as _peer_ to wp-content/:

    Default Location: /dev/ddnt/wp-content/uploads
    Directory A: /dev/ddnt/dir1/dir2/
    Directory B: /dev/ddnt/dir3/dir4/

    The wordpress URL in the WP 2.8 General settings is: http://mydomain.com/dev/ddnt

    But the GUID entry in the _posts table and displayed in the Media Directory Edit window, both write the URL as if dir1 and dir3 were subfolders _inside_ the wp-contents directory, viz:

    http://mydomain.com/dev/ddnt/wp-content/dir1/dir2/filea.pdf
    http://mydomain.com/dev/ddnt/wp-content/dir3/dir4/fileb.jpg

    And yet these URL strings still work!? Hmm. Is there some URL rewriting going on at my end? Regardless, I’m assuming that I need to move dir1 and dir3 _inside_ wp-content directory. I’m trying that now…

    Alan thank you for sharing your Relocate Upload plugin. It’s almost working for me.

    I’m using RU 0.13 and WP 2.8:

    1) I can upload files to the Media Library, Select Edit and successfully ‘move’ them to alternate folders, as configured in Settings -> RU.

    2) When I reselect Edit in the Media Library, the File URL reflects the new directory path to the recently moved file. So far so good!

    3) And yes, I can also delete ‘moved’ files thru the Media Library interface.

    However I have not been able to list the ‘moved’ files using the Media Library Filter button. Yes, the alternate folders configured in RU show up in the pop-up next to the ‘Filter’ button in the Media Library. But selecting any value other than ‘All Folders” returns an empty list of files.

    So thanks to RU I can now upload files and move them to alternate folders, but I can never list these files in a specific alternate folder. Only if I specify I want to filter on ‘All Folders’, do I get a listing of files. Of course, by specifying a ‘filter’ of ‘All Folders’, I lose the advantage of having multiple folders to organize the Media Library. I can’t list the contents of these Alternate folders. I can only list the contents of all the folders. And yes it works — I see all the files listed including those that have been moved by RU to alternate folders.

    Do you have any suggestions as to where I should focus my debugging efforts? Or any information that I could share on this forum to help provide insight into why I can’t list the files in the alternate folders?

    thank you!

Viewing 4 replies - 1 through 4 (of 4 total)