Upload Folders and Override

Phoca Download - download manager
doromi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 14 Nov 2013, 09:29

Upload Folders and Override

Post by doromi »

Hi,

working with Joomla 3.1.5 and Phoca Download 3.0.2 I got the following problem:

When I upload files via the backend these files are uploaded in the directory I have entered
in the options for the "download directory". Exactly what I want. (The only thing I don't like it that
uppercase letters in the filename are transformed into lowercase letters, and German things like "ä"
are deleted. But THAT I can cope with.)

When I upload files via the frontend these files are uploaded in a directory "userupload/username" below the
directory mentioned above, and I don't find where to change that - I would prefer all these uploaded files
in the same directory. Does anybody know in which source code file the path for these files is set ?
BTW - files uploaded via the frontend keep uppercase letters in their names - why such an inconsistency ?

AND - is there any chance to override the php files ? If somewhere in the future we upgrade PD I'm afraid
I will loose all my changes...

Thanks for any kind of help...

Regards
doromi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upload Folders and Override

Post by Jan »

Hi,

- for this you need to customized the php files directly :-(
- there is no override function like for outputs, so I think, such changes you need to backup and overwrite after you will update :-(

Jan
If you find Phoca extensions useful, please support the project
doromi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 14 Nov 2013, 09:29

Re: Upload Folders and Override

Post by doromi »

Hi Jan,

thanks for your quick reply.

So if I have to customize the php files directly - then I have to. OK.
Perhaps you still could give me an idea in which source code file the path for the uploading is set ?

Thanks again,

doromi
doromi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 14 Nov 2013, 09:29

Re: Upload Folders and Override

Post by doromi »

Have found it in another post...

The file to change the folders for the files to be uploaded:
/components/com_phocadownload/models/user.php

doromi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upload Folders and Override

Post by Jan »

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