CustomEventHandler / Function Hook

jdhf99

Well-Known Member
Mar 16, 2004
54
0
156
I'm attempting to figure out a way to access information about files being uploaded / saved from within cPanel's filemanager. I've created a CustomEventHandler that is executed for any API calls, and it works. However, the information supplied for files that have been uploaded is very minimal at times. Most of the calls supply the full file paths, but seemingly random ones do not.

example call to CustomEventHandler.pm:

Code:
#parameters:
api 1, type pre, module fileman, event fmsavefile

#cfgref-
$VAR1 = {
          'param4' => 1,
          'param0' => '%2fpublic_html',
          'param1' => 'index.php',
          'param3' => ' .. file contents here ..'
}
Is there any way to access a full filenames/paths consistently for files uploaded and saved via cPanel's file manager?

Any help with this would be appreciated.

I've tried creating hooks, and registered them, but it doesn't look like they're being executed for the API calls.

/usr/local/cpanel/hooks/fileman/fmsavefile
/usr/local/cpanel/hooks/fileman/uploadfiles