forked from jazkarta/obsolete-edx-sga
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow not only english language file uploads
Currently a student as well as staff member could upload any file as part of submission or grade. Unfortunately when the user trying to DOWNLOAD the files that filename is not in English (Russian for example) we got an 500 error on the server. This occurs because of Python encoding rules, and original issue is something like this: "UnicodeEncodeError: 'latin-1' codec can't encode characters in position 21-24: ordinal not in range(256)" (Depends on the filename) This patch is fixing it.
- Loading branch information
1 parent
0f25d31
commit de2f501
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters