Page 1 of 1

How can we hook new file upload event?

Posted: 07 Jan 2014, 16:05
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

Re: How can we hook new file upload event?

Posted: 09 Jan 2014, 23:49
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