Is is possible to specify the object name in the command of swift upload?

Bug #1012979 reported by Vincent Hou
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-swiftclient
Fix Released
Wishlist
Taurus Cheung

Bug Description

To upload a local file into a swift container, I can use command swift upload $container_name $local_file, which leads to that the object name in the container will be the same to the local file.
Is it possible to specify a different object name within this command? I think it should be added to the swift client.

Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

I think that's a reasonable feature to have.

tags: added: python-swiftclient
Changed in swift:
status: New → Confirmed
importance: Undecided → Low
importance: Low → Wishlist
Changed in swift:
assignee: nobody → Bavirisetty Ramya (bavirisetty-ramya)
Vincent Hou (houshengbo)
summary: - Is is possible to spefify the object name in the command of swift
+ Is is possible to specify the object name in the command of swift
upload?
Thierry Carrez (ttx)
affects: swift → python-swiftclient
Changed in python-swiftclient:
assignee: Bavirisetty Ramya (bavirisetty-ramya) → Taurus Cheung (taurus-cheung)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-swiftclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/61914

Changed in python-swiftclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-swiftclient (master)

Reviewed: https://review.openstack.org/61914
Committed: https://git.openstack.org/cgit/openstack/python-swiftclient/commit/?id=26ecec0f6dec1b9fd2c91ffd0f642685b1b155a0
Submitter: Jenkins
Branch: master

commit 26ecec0f6dec1b9fd2c91ffd0f642685b1b155a0
Author: Taurus Cheung <email address hidden>
Date: Fri Dec 13 10:57:23 2013 +0800

    Add --object-name

    Add parameter --object-name, which:
    1) Sets target object name when upload single file
    2) Sets object prefix when upload a directory

    Change-Id: Idc4357c3355e66d31c100540b901e70db20b03c3
    Closes-Bug: 1012979

Changed in python-swiftclient:
status: In Progress → Fix Committed
Changed in python-swiftclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.