example for upload from stdin

This commit is contained in:
Ville Rantanen
2018-02-13 21:16:12 +02:00
parent ba562d627d
commit 98035cea41

View File

@@ -207,6 +207,11 @@ def print_rest_api(shares, config, opts):
share['name'],
share['pass_hash']
))
print("cat file_to_send.ext | curl -F file='@-;filename=the_file_name.ext' %s/upload/%s/%s"%(
config['public_url'],
share['name'],
share['pass_hash']
))
elif opts.type == "download":
print("Links to download files:")
share_path = os.path.join(