Hello. I'm traying to upload files but i'm getting error (error occurred) without any details. Here is my code:
I'm logging as user who owns domain in $path.
Thanks for any help.
PHP:
$sock->set_method('POST');
$path = "/domains/userdomain.com/public_html";
$file = "/home/kreatorv/domains/domain.com/public_html/index2.htm";
$sock->query('/CMD_API_FILE_MANAGER',
array(
'enctype' => "multipart/form-data",
'action' => 'upload',
'path' => $path,
'file1' => $file
));
$result = $sock->fetch_result();
var_dump($result);
Thanks for any help.