File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class OmrDemo
6161 /// {
6262 /// "app_key" : "xxxxx",
6363 /// "app_sid" : "xxx-xxx-xxx-xxx-xxx",
64- /// "base_path" : "https://api.aspose.cloud/v1.1 ",
64+ /// "base_path" : "https://api.aspose.cloud/v3.0 ",
6565 /// "data_folder" : "Data"
6666 /// }
6767 /// Provide your own app_key and app_sid, which you can receive by registering at Aspose Cloud Dashboard (https://dashboard.aspose.cloud/)
@@ -338,7 +338,10 @@ protected void UploadFile(string srcFile, string dstPath)
338338 using ( FileStream fs = new FileStream ( srcFile , FileMode . Open ) )
339339 {
340340 FilesUploadResult response = FileApi . UploadFile ( new UploadFileRequest ( dstPath , fs ) ) ;
341- Console . WriteLine ( $ "File { dstPath } uploaded successfully with response { response } ") ;
341+ if ( response . Errors . Count == 0 )
342+ {
343+ Console . WriteLine ( $ "File { dstPath } uploaded successfully with response Status: Ok") ;
344+ }
342345 }
343346 }
344347
You can’t perform that action at this time.
0 commit comments