On Mon, Sep 29, 2025 at 10:18 AM Sean Hulbert
<[email protected]> wrote:

> Hello Nic,
>
> Since there is no stream in Guacamole to detect file upload events...
>
Well, I wouldn't say this, exactly - Guacamole does have streams to detect
and handle file uploads - this is what guacd is using when someone uploads
a file. What you're more interested in, though, is the ability to
externally affect the file upload, and it is true that guacd does not have
any configurability in intercepting the file uploads between them being
sent to guacd and them landing on the filesystem.

> I came up with this one liner, what are your thoughts?
>
> *inotifywait -m -e close_write /guacamole/drive/ | while read path action
> file;*
>

Yes, on Linux filesystems that support the iNotify and/or FANotify
facilities, this is a perfectly good way to deal with intercepting or
handling files that get uploaded. This facility is actually quite powerful,
and even includes the ability to "veto" access to a file, so you can do
some pretty cool stuff with this.

-Nick

Reply via email to