CMD_API_FILE_MANAGER upload file

mnich209

Verified User
Joined
Feb 4, 2019
Messages
9
Hello,

Im trying to upload an file by CMD_API_FILE_MANAGER but im getting error: this file is not valid for copy.
File manager from DA works fine but problem is only in API

my request:
PHP:
$data = array(
					'enctype' => "multipart/form-data",
					'action' => 'upload',
					'path' => $path,
					'name' => $_FILES['file']['name'],
					'file1' =>
							'@'		  . $_FILES['file']['tmp_name']
						  . ';filename=' . $_FILES['file']['name']
						  . ';type='	 . $_FILES['file']['type']
		);

Any ideas ?
 
Hello,

It still doesn't work, in directadmin debug i only see error:

is_valid_upload_file: /tmp/phpHxkE9d invalid. Must start with /home/tmp

Any Ideas?
 
Back
Top