Upload Files Into OCI Object Storage with Pre-Authenticated Requests (PAR)
Symptom:
Sometimes we need to provide many files to customers and customers need to provide files to us. We can use OCI Object Storage Pre-Authenticated Requests to share data. Please refer more details on Oracle Blog. However after I create bucket Pre-Authenticated Requests , copy and paste url into our browser, we get below error
{"code":"NotFound","message":"Not Found"}
Solution:
The object Pre-Authenticated Requests can be writing or reading or both.
The bucket Pre-Authenticated Requests is for writing purpose only (not reading)
So we need to use curl or other tools to put objects into the bucket. ie
curl https://objectstorage.ca-toronto-1.oraclecloud.com/p/Rf3d70gVBmrGu-RYyrmLhU_lH38XQQuLq1gfj5IELjA/n/fcias2/b/colo-backups/o/ --upload-file <file_name>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment