Hello, I am attempting to get uapi Fileman::upload_files to work. I get this error no matter what I use in the file-1 or dir key fields:
You must specify at least one file to upload.
My request looks like this:
I have attempted urlencoding the entire request, just the key/value, and just the values. I have attempting using the xml-api php library as well as the WHM API 1 (the request above). I have also attempted using the API 2 (including using the correct key format) instead of the UAPI.
I should also point out that the above request is for WHM API 1, and when cpanel_xmlapi_verison is set to 3 upload_files does not work (as it is documented) vs uploadfiles which does work.
Has anyone had this issue before and fixed it? Thank you.
You must specify at least one file to upload.
My request looks like this:
Code:
$request = "/xml-api/cpanel?api.version=1&cpanel_xmlapi_user=test&cpanel_xmlapi_module=Fileman&cpanel_xmlapi_func=uploadfiles&cpanel_xmlapi_version=3&dir=" . urlencode('testdir') . "&file-1=" . urlencode("test.txt");
I should also point out that the above request is for WHM API 1, and when cpanel_xmlapi_verison is set to 3 upload_files does not work (as it is documented) vs uploadfiles which does work.
Has anyone had this issue before and fixed it? Thank you.