Move files from existing folder to a new folder?

Phoca Download - download manager
adoucette
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 02 Aug 2014, 16:11

Move files from existing folder to a new folder?

Post by adoucette »

Hello,
Is it possible to move existing files uploaded by a user to a new folder?
In my example, I want to move some (but not all) of the files from one user's userupload folder to a higher level folder.
Move from Path: /home/myserver/www/mydomain.com/phocadownload/userupload/imauser
To Path: /home/myserver/www/mydomain.com/phocadownload/newfolder

How would I accomplish that?
If it cannot be done in the GUI, then I could move them using FTP, but then what SQL would I need to run afterward?

Thank you,
Ari
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Move files from existing folder to a new folder?

Post by Jan »

Hi, yes, see similar posts in this forum. Phoca Download has independent database and filesystem layer. This means when you move the fileas on filesystem, you need to change the path to them for database. This means:

- you can move the file on your server from source to destination
- but then you need to go to the file in administration and change the part from source path to destination path (of course, when there are a lot of files affected, this can be even done in SQL)

Jan
If you find Phoca extensions useful, please support the project
Post Reply