|
@@ -703,7 +703,7 @@ class testView(View):
|
|
|
client = session.client("s3")
|
|
|
bucket = "asj-oct-ipc" # 【你 bucket 的名字】 # 首先需要保.证 s3 上已经存在该存储桶,否则报错
|
|
|
upload_data = open("./././static/log/error.log", "rb")
|
|
|
- upload_key = "86YC8Z192VB1VMKU111A/test"
|
|
|
+ upload_key = "86YC8Z192VB1VMKU111A/vod1/test"
|
|
|
file_obj = s3.Bucket(bucket).put_object(Key=upload_key, Body=upload_data)
|
|
|
print('--------')
|
|
|
print(file_obj)
|