Skip to main content

Fileman::savefile && Fileman::uploadfiles Problems

Comments

5 comments

  • cPanelMichael
    Hello @b81erikan, We provide a step-by-step guide and example for use with PHP at: Tutorial - Use UAPI's Fileman::upload_files Function in Custom Code - Developer Documentation - cPanel Documentation Can you follow these steps and let us know which one you are having trouble with? Also, can you provide more information about where the custom script is located (e.g. your home computer, a website on the cPanel server)? Thank you.
    0
  • b81erikan
    Hello @b81erikan, We provide a step-by-step guide and example for use with PHP at:
    0
  • cPanelMichael
    I work at localhost. I wanna upload from computer to website. I looked this tutorial, i write realpath("file1.zip") for "file-1". This path is true but when i start this page i look this error "You must specify at least one file to upload. " How to choose file?

    Hello @b81erikan, Steps 5 thru 9 on that document explain how to upload the file you defined in step 4. Additionally, here's an example of how you'd setup a form for someone to access and choose a file from their local computer to upload: php send file to remote server using cURL Thank you.
    0
  • Visad182
    Hello Michael. Cpanel should rethink his API. To much method without example.
    0
  • cPanelMichael
    Hello Michael. Cpanel should rethink his API. To much method without example.

    Hello @Visad182, Thank you for taking the time to provide us with feedback on the usability of this API function. I encourage you to open a feature request to request an easier method to perform this task or to request a change to the existing API functionality:
    0

Please sign in to leave a comment.