From 49f884d54117bc79dbd9e45b1b661073f264f5c6 Mon Sep 17 00:00:00 2001 From: Danish Date: Thu, 14 Nov 2024 11:50:14 +0530 Subject: [PATCH] fix: added path for storing course media for s3 --- course/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/views.py b/course/views.py index 22b3bd7..5bcaa34 100644 --- a/course/views.py +++ b/course/views.py @@ -49,9 +49,9 @@ def get_presigned_url(request): timestamp = int(time.time()) if file_type == 'video': - key = f'module_videos/{timestamp}-{filename}' + key = f'media/module_videos/{timestamp}-{filename}' elif file_type == 'notes': - key = f'module_notes/{timestamp}-{filename}' + key = f'media/module_notes/{timestamp}-{filename}' else: return Response({'error': 'Invalid file type'}, status=400)