courseworx/backend/routes
mmabdalla c06600f263 v2.0.1 - CRITICAL FIX: Video Upload Bug - Content Creation File Upload Issue
- Fixed parameter shadowing in useContentManagement.js handleAddContent function
- Changed selectedFile parameter to selectedFileParam to avoid state variable shadowing
- Added fallback logic: fileToUpload = selectedFileParam || selectedFile
- Updated all upload logic references to use fileToUpload instead of selectedFile
- Enhanced debugging with useEffect tracking and stack traces
- Fixed React error in LessonDetail.js with null checks for nextSibling
- Fixed media authentication by adding token to query parameters in imageUtils.js
- Updated dependency arrays for proper state management
- Resolved video upload issue during initial content creation

Files modified:
- frontend/src/hooks/useContentManagement.js
- frontend/src/hooks/useFileUpload.js
- frontend/src/pages/CourseContentViewer.js
- frontend/src/pages/LessonDetail.js
- frontend/src/utils/imageUtils.js
- backend/routes/courseContent.js
- version.txt
2025-09-14 04:12:23 +03:00
..
assignments.js Initial version 0.0.1 - Complete CourseWorx application with backend and frontend 2025-07-26 20:34:13 +03:00
attendance.js Initial version 0.0.1 - Complete CourseWorx application with backend and frontend 2025-07-26 20:34:13 +03:00
auth.js feat: Implement Course Content Section for Trainers (v1.3.0) 2025-08-21 03:16:29 +03:00
courseContent.js v2.0.1 - CRITICAL FIX: Video Upload Bug - Content Creation File Upload Issue 2025-09-14 04:12:23 +03:00
courses.js feat: Implement Course Content Section for Trainers (v1.3.0) 2025-08-21 03:16:29 +03:00
enrollments.js feat: Implement Course Content Section for Trainers (v1.3.0) 2025-08-21 03:16:29 +03:00
users.js Fix header layout and add debugging for dashboard statistics - Removed 'CourseWorx' text from header - Fixed logo path to use /images/cx-logo.png - Moved navigation items next to Home icon - Added debugging to API calls and dashboard - Added console logging to backend stats endpoints 2025-07-31 02:51:24 +03:00