File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ if (args.length !== 2) {
36
36
37
37
const directoryPath : string = args [ 0 ] ; // for eg : "/Users/Abc/upload-manager";
38
38
const bucketName = args [ 1 ] ;
39
+ const hostName = "objectstorage"
39
40
40
41
const client = new ObjectStorageClient ( { authenticationDetailsProvider : provider } ) ;
41
42
client . region = Region . US_PHOENIX_1 ;
@@ -77,7 +78,7 @@ client.region = Region.US_PHOENIX_1;
77
78
// create pre authenticated request to generate the url
78
79
const resp = await client . createPreauthenticatedRequest ( createPreauthenticatedRequest ) ;
79
80
const baseUrl =
80
- "https://objectstorage ." + common . Region . US_PHOENIX_1 . regionId + ".oraclecloud.com" ;
81
+ "https://" + hostName + " ." + common . Region . US_PHOENIX_1 . regionId + ".oraclecloud.com" ;
81
82
const downloadUrl = resp . preauthenticatedRequest . accessUri ;
82
83
console . log ( "download url for the file " + filename + " is " + baseUrl + downloadUrl ) ;
83
84
You can’t perform that action at this time.
0 commit comments