Ask Your Question

Which way to set custom metadata? [closed]

asked 2019-05-16 21:55:54 -0500

Hello everyone! I want to set custom metadata with command swift post 9331558060408 a.txt -H "X-Object-Quang-Vu: QuangVu" but when I check status of that object, nothing is displayed. Please explain me why? I think setting custom metadata is default, not middleware.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Bernd Bausch
close date 2019-05-19 18:42:15.249773

1 answer

Sort by ยป oldest newest most voted

answered 2019-05-16 22:23:40 -0500

updated 2019-05-16 22:35:22 -0500

Your header is incorrect. It must have the form x-object-meta-yourkey: yourvalue; see the API reference.

Alternatively, try swift post -m.

edit flag offensive delete link more


thank you so much!

Quang Vu gravatar imageQuang Vu ( 2019-05-16 23:41:05 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-05-16 21:55:54 -0500

Seen: 82 times

Last updated: May 16 '19