// This code example demonstrates how to upload a PDF file to the cloud.
// Initialize an instance of the API
$apiInstance = new GroupDocs\Annotation\FileApi($configuration);

// File path
$file = "C:\\Files\\Annotation\\sample.pdf";

// Create upload file request
$request = new GroupDocs\Annotation\Model\Requests\UploadFileRequest("sample.pdf", $file, self::$MyStorage, null);

// Upload file
$response = $apiInstance->uploadFile($request);