Rename file before upload to Drop Folder


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.


You can use postWrite Hook for your purpose. See here:

1 Like