Feature #4991

Better handling of file/image target location

Added by Dionysis Grigoropoulos about 10 years ago. Updated about 10 years ago.

Status:Resolved Start date:01/27/2014
Priority:Medium Due date:01/28/2014
Assignee:Stavros Sachtouris % Done:

100%

Category:kamaki Spent time: 2.00 hours
Target version:v0.13 Estimated time:2.00 hours

Description

At the moment, when uploading a file, kamaki expects a container to be
specified, if it isn't, a "Syntax error" occurs. This shouldn't be the case,
the file should be upload at the default container, e.g., `Pithos`.

Moreover, when registering an image, kamaki expects the complete path to be
given. e.g., /images/my_awesome_file.txt. If the user only specified a
container kamaki will complain about it being an "Invalid Pithos+ location".
A better aproach would be to upload the file in the specified container,
with it's original filename.

Associated revisions

Revision 44443c24
Added by Stavros Sachtouris about 10 years ago

Allow image register from local file to container

Refs: #4991

Image register can now accept these options as correct:
--location [pithos://UUID]/CONTAINER --upload-local-file LOCAL_PATH
which is equivalent to this:
--location [pithos://UUID]/CONTAINER/basename(LOCAL_PATH) --upload-local-file LOCAL_PATH

History

#1 Updated by Stavros Sachtouris about 10 years ago

  • Due date set to 01/28/2014
  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Estimated time set to 2.00

Also available in: Atom PDF