How to Capture all inserted files with name and path


#1

I'll need execute a function when a new file is synchronize with the server. I'll need the name and path of this files.

How is the best way to do this?


#2

Hello, two ways : with API ( i hope...) or with trigger in your database. For the second way, a table collect all insertion of files . And you can obtain a sql dump of this table all day for example .


#3

Would you fully describe your purpose? Where will the function work? If it is in an ownCloud app, you can listen file write hooks and events.