IBM / ibm-cos-sdk-js

ibm-cos-sdk-js
Apache License 2.0
38 stars 19 forks source link

How to make upload object be public access #19

Closed TopGunBasten closed 6 years ago

TopGunBasten commented 6 years ago

I need uploade file to be access public without token. like below curl -X "PUT" "https://{endpoint}/{bucket-name}/{object-name}" \ -H "x-amz-acl: public-read" \ -H "Authorization: Bearer {token}" \ -H "Content-Type: text/plain; charset=utf-8" \ -d "{object-contents}" how to use sdk to do that?

TopGunBasten commented 6 years ago

With paramter ACL

TannerS commented 2 years ago

@TopGunBasten can you show an exmaple or a documentation please?

TopGunBasten commented 2 years ago

@TannerS please refer that one https://www.ibm.com/docs/en/coss/3.10.2?topic=development-rest-api-reference