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 )