mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 10:05:21 +00:00
sonar issues fixed
This commit is contained in:
@ -6,6 +6,14 @@ from django.conf import settings
|
||||
"""Import tempfile"""
|
||||
import tempfile
|
||||
|
||||
# Define upload image on
|
||||
# ali baba cloud
|
||||
# firstly save image
|
||||
# in temporary file
|
||||
# then check bucket name
|
||||
# then upload on ali baba
|
||||
# bucket and reform the image url"""
|
||||
|
||||
def upload_image_to_alibaba(image, filename):
|
||||
"""upload image on oss alibaba bucket"""
|
||||
# Save the image object to a temporary file
|
||||
|
Reference in New Issue
Block a user