Skip to main content

What Api And What Function Call Is The File Manager Using For Downloads

Comments

5 comments

  • stormthefront
    Hello, more debug info :
    Request URL: https://server.com:2083/cpsess4352439023/download?skipencode=1&file=%2fhomehdd%2username%2fpublic_html%2fdir%2ffile.tar.gz Request Method: GET Status Code: HTTP/1.1 404 Not Found
    Regards, K.
    0
  • Infopro
    Is this related to your other thread?
    0
  • stormthefront
    Hello, It is supposedly related (although the issue there has been RESOLVED by implementing a hook - it is no longer present). Here, however it seems that if I change the GET request to
    https://server.com:2083/cpsess6744230909/download?skipencode=1&file=%2fhome%2fusername%2fpublic_html%2f360username%2ffile.tar.gz
    it starts working and the download passes through. Any idea on how to get cPanel to work with home in the Fileman section? Thanks. Regards, K.
    0
  • stormthefront
    Hello, using the UAPI path parameter I can see that the absolute path is:
    "path":"/homehdd/user","nicemode":"0711","humansize":"57 bytes","size":"57","fullpath":"/homehdd/user","absdir":"/homehdd/user"
    Where does it take this information from? The users are set with /home/username in /etc/passwd I am beginning to think this is something related to permissions, but I have not idea how to debug it yet. Regards, K.
    0
  • Infopro
    although the issue there has been RESOLVED

    Why haven't you posted back to that thread instead of leaving it in play? I think these threads are related.
    I found some API function calls for both API2 and UAPI, however none addresses download from file manager to local computer.

    Documentation is located here:
    0

Please sign in to leave a comment.