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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Uploading Files with API issue

Discussion in 'cPanel Developers' started by Marani, Apr 15, 2018 at 3:57 PM.

Tags:
  1. Marani

    Marani Registered

    Joined:
    Nov 23, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Iran
    cPanel Access Level:
    Website Owner
    Hi,

    Using POSTMAN I'm trying to upload files from local computer to the server using this method.
    This is the code I use:

    Code:
    https://secure10.mycPanel.com:2083/cpsess4228153237/execute/Fileman/upload_files?dir=/home/myUsernameHere/public_html&file-1=123.html
    And it says:

    Code:
    {"data":{"succeeded":0,"warned":0,"uploads":[],"failed":0},"messages":null,"errors":["You must specify at least one file to upload."],"metadata":{},"status":0}
    First, is my approach to uploading files from local correct?
    Second, if the answer to the first is yes, then how I correct this issue?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page