|
@@ -383,13 +383,15 @@ class AiView(View):
|
|
|
bucket = "push"
|
|
|
|
|
|
for file_path, upload_path in file_dict.items():
|
|
|
-
|
|
|
+ print('-------')
|
|
|
+ print(file_path)
|
|
|
+ print('-------')
|
|
|
upload_data = open(file_path, "rb")
|
|
|
# upload_key = "test"
|
|
|
s3.Bucket(bucket).put_object(Key=upload_path, Body=upload_data)
|
|
|
- # 需要删除图片
|
|
|
- self.del_path(dir_path)
|
|
|
- self.del_path(dir_path + '.jpg')
|
|
|
+ # 需要删除图片
|
|
|
+ self.del_path(dir_path)
|
|
|
+ self.del_path(dir_path + '.jpg')
|
|
|
return True
|
|
|
except Exception as e:
|
|
|
print(repr(e))
|