Rename file before upload to Drop Folder


#1

Hi,

I want to personalize my ownCloud (v 10) with this function:

  • on an anonymous upload (drop file) i want to rename each file uploaded by the user in a particultar way (each file renamed with the userID, i use ownCloud inside a legacy application) o put each user file inside a user folder.

Do you have any suggestion?
Where to start? Now I’m explorig source code starting from app/files_sharing source folder.

Thanks
Filippo


#2

You can use postWrite Hook for your purpose. See here: https://doc.owncloud.org/server/10.0/developer_manual/app/fundamentals/hooks.html