Commit de2f501
committed
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.1 parent 0f25d31 commit de2f501
2 files changed
+35
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
| 523 | + | |
| 524 | + | |
524 | 525 | | |
525 | 526 | | |
526 | 527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
447 | 480 | | |
448 | 481 | | |
449 | 482 | | |
| |||
0 commit comments