You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there's no way to set the predefined object ACL on an object that is being uploaded (though there is in the REST API). One can overwrite the metadata with a new ACL, but that is a hard overwrite, and doesn't preserve existing ACLs, unlike add default ACL. It would be neat if we had an API that worked like:
varoptions={predefinedAcl:'publicRead',validation: 'crc32',metadata: {/* add metadata here */}};bucket.upload('local/path/to/bar.txt',options,function(err,file){// File is publicly readable!});
The text was updated successfully, but these errors were encountered:
Currently, there's no way to set the predefined object ACL on an object that is being uploaded (though there is in the REST API). One can overwrite the metadata with a new ACL, but that is a hard overwrite, and doesn't preserve existing ACLs, unlike add default ACL. It would be neat if we had an API that worked like:
The text was updated successfully, but these errors were encountered: