Page 1 of 1

Move files from existing folder to a new folder?

Posted: 21 Jan 2022, 20:40
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

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

Posted: 23 Jan 2022, 21:18
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