Skip to content

Fix file upload path when parent directories have spaces #98

Description

@MImran2002

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions