Hi Michael,
Is there a way to reset or reload the Uploader so that it moves back up to the main directory after a folder is deleted inside a deeper folder?
Brief explanation of what I'm doing ...
My images are loaded into folders by the Country in which they were photographed.
The Country folder is automatically created according to the country name selected in a drop down menu when the user uploads the image.
I also have my thumbnails automatically placed inside that country folder.
I have created an "_after_process_file" plugin (which you already helped me with) that deletes the thumbnails inside the country folder if a user deletes an image.
Then the plugin checks to see if that thumbnails folder and country folder are empty, if yes, then it deletes both the thumbnails folder and the country folder. This way I wont have a lot of empty country folders if the user is deleting images.
When the country folder is automatically deleted, I get the status message "The remote folder does not exist or was removed." which I understand, because the user is still inside that directory.
What I need to do, is after that folder is automatically deleted, is to have the Uploader reset or move back up to the starting directory, so the user is not confused. I want them to be automatically taken back to the starting point.
Does this make sense? I explored some of the functions in the tfu_helper and tfu_file. I found "resetSessionTree()" and "change_folder" functions, but was not successful in doing anything with them.
Any suggestions would be greatly appreciated!
Tracy
Joomla 1.6.3
JFU 2.14
Server: localhost / development site