Skip to content

Commit

Permalink
optional TargetFilename for SSK inserts in direct/data mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratchet committed Apr 25, 2011
1 parent 6f9878f commit ce748e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fcp/node.py
Expand Up @@ -680,6 +680,9 @@ def put(self, uri="CHK@", **kw):
elif kw.has_key("data"):
opts["UploadFrom"] = "direct"
opts["Data"] = kw['data']
targetFilename = kw.get('name')
if targetFilename:
opts["TargetFilename"] = targetFilename

elif kw.has_key("redirect"):
opts["UploadFrom"] = "redirect"
Expand Down

0 comments on commit ce748e3

Please sign in to comment.