Commit 2678d473 authored by jkvis's avatar jkvis

Added directory to metadata

parent af58fdf3
......@@ -2,6 +2,10 @@
"title": "Minimal transfer metadata",
"type": "object",
"properties": {
"transfer": {
"type": "string",
"pattern": "^$"
},
"title": {
"type": "string",
"pattern": ".+"
......@@ -30,6 +34,7 @@
}
},
"required": [
"transfer",
"title",
"files"
]
......
......@@ -468,6 +468,9 @@ def upload(user, transfer_id):
logging.error(excp.strerror)
success = False
# Add the primary directory to the metadata.
meta_data['transfer'] = transfer.tid
if success:
try:
result = requests.post(user.action,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment