how to manage file storage ?

Phoca Download - download manager
Fraifrai
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Apr 2010, 17:20
Contact:

how to manage file storage ?

Post by Fraifrai »

Hi,

I'm a French user of PhocaDownload and PhocaGallery. I noticed that files are stored in a directory that does not follow section/categories classification (but only allow to create directories. Storing files in the phocadownload directory will quickly make it unusable :cry:

What is the solution ?

I also notices that deleting files in the database do not remove them from the filesystem :evil:

If there is no native solution i will write (and offer under GPL Licence) maintenance scripts that :
  • Delete files that are not references in the database
  • Create the section/category structure in filesystem and move files to the correct folder and update the database in this way
Fraifrai
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Apr 2010, 17:20
Contact:

Re: how to manage file storage ?

Post by Fraifrai »

Is anybody interested by such a contribution or shall I keep it for me ?

Anyway I would like to get your advice about this problem.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to manage file storage ?

Post by Jan »

Hi, there is no such option.

If you will write such improvement, will be great to add it here, or on joomlacode.org server.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Fraifrai
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Apr 2010, 17:20
Contact:

Re: how to manage file storage ?

Post by Fraifrai »

I do not know the Joomla! API so I will first write my maintenance scripts in basic PHP and will submit them as is. Maybe I will get time to learn how to include it in a plugin :)
Post Reply