We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72029a7 commit d409679Copy full SHA for d409679
python/example_code/s3/s3_basics/presigned_url.py
@@ -71,7 +71,7 @@ def usage_demo():
71
if args.action == "get":
72
response = requests.get(url)
73
if response.status_code == 200:
74
- with open(args.key, 'wb') as object_file:
+ with open(args.key.split("/")[-1], 'wb') as object_file:
75
object_file.write(response.content)
76
elif args.action == "put":
77
print("Putting data to the URL.")
0 commit comments