Closed patelsumit5192 closed 10 months ago
Hey.
Of course you can upload a file using $_FILE, just use the library API method upload()
and specify the local file path that is inside the $_FILE super global, like so:
$uploaddir = '/var/www/uploads/';
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
$client->upload($uploadfile, 'path/to/remote/file');
}
If you need any help let me know!
Hello sir, I have uploaded a simple method it's working fine but I want to upload a file using the
$_File
variable using your library. if any method are present then guide me or provided link.