How can we hook new file upload event?

Phoca Download - download manager
GregoryR
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 26 Dec 2013, 18:51

How can we hook new file upload event?

Post by GregoryR »

Hello,
I'm trying to customize Phoca Download and make some my php code starts after the Administrator uploads file to specific directory.

But i can't find where should i place my code to hook new file created event (created by Administrator in control panel).

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

Re: How can we hook new file upload event?

Post by Jan »

Hi, depends on if you mean upload or add.

- if upload - you need to customize the fileupload library in libraries folder
- if add - then you need to see the model of file: phocadownloadfile.php

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