Issue Description: When a user uploads a syllabus under Courses, the backend creates a file path that may contain spaces. The final file path can incorrectly remove these spaces, causing the application to save the file to a nonexistent directory and resulting in a No such file or directory error.
Update the file path creation logic so that spaces in directory names are preserved when constructing upload paths.
Expected Behavior: Files should upload successfully even when the application or upload directory path contains spaces.
Issue Description: When a user uploads a syllabus under Courses, the backend creates a file path that may contain spaces. The final file path can incorrectly remove these spaces, causing the application to save the file to a nonexistent directory and resulting in a No such file or directory error.
Update the file path creation logic so that spaces in directory names are preserved when constructing upload paths.
Expected Behavior: Files should upload successfully even when the application or upload directory path contains spaces.