Page 1 of 1

how to manage file storage ?

Posted: 19 Apr 2010, 17:23
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

Re: how to manage file storage ?

Posted: 21 Apr 2010, 12:32
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.

Re: how to manage file storage ?

Posted: 22 Apr 2010, 22:42
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

Re: how to manage file storage ?

Posted: 23 Apr 2010, 07:25
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 :)