filebrowser / docs

📄 Who doesn't like documentation?
58 stars 39 forks source link

create directory event #33

Closed skaravad closed 3 years ago

skaravad commented 3 years ago

Hello, First, thank you so much for providing a simple and extremely useful utility. I've configured the filebrowser as a simple solution with some additional nginx/bash ways to provide access to user Home directory, so far all good. From what I see, when users create/upload file, I was able to change the ownership and permissions via the command runner

cmds add "after_upload" 'chown -R $USERNAME:$USERNAME $FILE'
cmds add "after_upload" 'chmod 600 $FILE' # The file has execute bit by default , forcing the permission change.
cmds add "after_copy" 'chown -R $USERNAME:$USERNAME $FILE'
cmds add "after_copy" 'chmod 600 $FILE'

However when we create a directory from the UI, these options do not work, is create directory a different event ? any help is much appreciated.

I'll try few other ways to see if I can change the ownership, but if there is anything the code provides like above would be great.

skaravad commented 3 years ago

closing this for https://github.com/filebrowser/filebrowser/issues/1503