feat: add API views for user registration and OTP authentication services
Some checks failed
Deploy Beta (NATIVE) / deploy (push) Failing after 33s
Some checks failed
Deploy Beta (NATIVE) / deploy (push) Failing after 33s
This commit is contained in:
parent
1788030b7b
commit
86f1e2e86a
1 changed files with 7 additions and 0 deletions
|
|
@ -615,6 +615,12 @@ class PresignedUrlView(APIView):
|
|||
ext = 'jpeg'
|
||||
elif 'jpg' in content_type:
|
||||
ext = 'jpg'
|
||||
elif 'mp4' in content_type:
|
||||
ext = 'mp4'
|
||||
elif 'quicktime' in content_type or 'mov' in content_type:
|
||||
ext = 'mov'
|
||||
elif 'webm' in content_type:
|
||||
ext = 'webm'
|
||||
elif '/' in content_type:
|
||||
ext = content_type.split('/')[-1]
|
||||
|
||||
|
|
@ -805,6 +811,7 @@ class BulkUploadView(APIView):
|
|||
stock=stock_val,
|
||||
sku=sku,
|
||||
image=image_url,
|
||||
description=p_data.get('description', ''),
|
||||
status='pending',
|
||||
is_active=True
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue