The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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