mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
Merge pull request #42880 from Kalkulus1/patch-1
doc: adds a way to allow users set_contents_from_filename for rgw Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
874b2b304a
@ -106,6 +106,17 @@ This creates a file ``hello.txt`` with the string ``"Hello World!"``
|
||||
|
||||
key = bucket.new_key('hello.txt')
|
||||
key.set_contents_from_string('Hello World!')
|
||||
|
||||
|
||||
Uploading an Object or a File
|
||||
-----------------------------
|
||||
|
||||
This creates a file ``logo.png`` with the contents from the file ``"logo.png"``
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
key = bucket.new_key('logo.png')
|
||||
key.set_contents_from_filename('logo.png')
|
||||
|
||||
|
||||
Change an Object's ACL
|
||||
|
Loading…
Reference in New Issue
Block a user