example for upload from stdin
This commit is contained in:
@@ -207,6 +207,11 @@ def print_rest_api(shares, config, opts):
|
|||||||
share['name'],
|
share['name'],
|
||||||
share['pass_hash']
|
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":
|
elif opts.type == "download":
|
||||||
print("Links to download files:")
|
print("Links to download files:")
|
||||||
share_path = os.path.join(
|
share_path = os.path.join(
|
||||||
|
|||||||
Reference in New Issue
Block a user