I´m using the API through PHP. The following lines of code are used to create a folder, upload a PDF-file and then move and rename the uploaded file to the freshly created folder.
$signer = new GroupDocsRequestSigner($privateKey);
$apiClient = new APIClient($signer);
$mgmtApi = new MgmtApi($apiClient);
$antApi = new AntApi($apiClient);
$storageApi = new StorageApi($apiClient);
$basePath = 'https://api.groupdocs.com/v2.0';
$createFolder = $storageApi->Create($clientId, "online-trainings");
$uploadResult = $storageApi->UploadWeb($clientId, "https://...../dummy_03.pdf");
$id = $uploadResult->result->id;
$moveFile = $storageApi->MoveFile($clientId, 'online-trainings/dummy_03_renamed.pdf', NULL, $id, NULL);
The script runs without problems and the uploaded file can be found via the dashboard - but opening it with the viewer results in an error-message like this:
Could not find a part of the path 'E:\inetpub\wwwapi\v2.0\App_Data\188709\temp\Cache\718c134...8c6b\@x.Pdf\page_0.jpg'.
The very same file uploaded to the same folder via the dashboard´s “Upload”-button works as expected …