I’m trying to get started using this API on Windows, but I cant for the life of me figure out how to set the file path. I have it set as:
fileInfo.setFilePath (“E:\Films\2 Guns.mkv”);
but if cant find the file. I’ve tried various ways to set the file but nothing works. Anyone any ideas?
@pmcerlean
Please note Aspose.Metadata Cloud API processes files from cloud storage instead of local system path. So you have to upload you source file to storage first and then pass the file path to fileinfo object.
curl -X PUT "https://api.groupdocs.cloud/v1.0/metadata/storage/file/Temp/Test.pdf"
-H "accept: application/json"
-H "authorization: Bearer [Access_Token]"
-H "Content-Type: multipart/form-data"
-H "x-aspose-client: Containerize.Swagger"
-T C:/Temp/02_pages.pdf
1 Like