jira-15 remove commented code

This commit is contained in:
jain
2023-07-06 16:20:07 +05:30
parent c7a5bf68a0
commit 34034dcdb8

View File

@ -10,9 +10,6 @@ def upload_image_to_alibaba(image, filename):
bucket = oss2.Bucket(auth, settings.ALIYUN_OSS_ENDPOINT, settings.ALIYUN_OSS_BUCKET_NAME)
# Upload the temporary file to Alibaba OSS
bucket.put_object_from_file(filename, temp_file.name)
print("filename====>",filename,'===>',type(filename))
new_filename = filename.replace(' ', '%20')
print()
print("filename====>", filename, '===>', type(filename))
return f"https://{settings.ALIYUN_OSS_BUCKET_NAME}.{settings.ALIYUN_OSS_ENDPOINT}/{new_filename}"