From 86f1e2e86aebdce6dbcd4f00bbfa955b52306861 Mon Sep 17 00:00:00 2001 From: vickytechkey Date: Sat, 3 Oct 2026 11:50:39 +0530 Subject: [PATCH] feat: add API views for user registration and OTP authentication services --- api/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/views.py b/api/views.py index ed7690f..9709990 100644 --- a/api/views.py +++ b/api/views.py @@ -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 )