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:
Is there any way to access a full filenames/paths consistently for files uploaded and saved via cPanel's file manager?Code:#parameters: api 1, type pre, module fileman, event fmsavefile #cfgref- $VAR1 = { 'param4' => 1, 'param0' => '%2fpublic_html', 'param1' => 'index.php', 'param3' => ' .. file contents here ..' }
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



LinkBack URL
About LinkBacks
Reply With Quote




