Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

CustomEventHandler / Function Hook

Discussion in 'cPanel Developers' started by jdhf99, Oct 21, 2009.

  1. jdhf99

    jdhf99 Well-Known Member

    Mar 16, 2004
    Likes Received:
    Trophy Points:
    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

    api 1, type pre, module fileman, event fmsavefile
    $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.


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice