Skip to content

file submission with special characters will fail to download  #189

@RA341

Description

@RA341

Subject of the issue


When making a file submissions, if the file name contains special characters, it will no longer be able to be downloaded, since the path will be different in multer and what we store in the database

Expected behaviour


The filename should be URL encoded before uploading and the same string should be stored in the database

Actual behaviour


The file name is stored without encoding

Steps to reproduce


Make a file submission to an assignment that contains special characters or spaces "hello_ world"
try to retrieve this file using
localhost:3001/course/1/file-upload/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions