Bug #6023
closedFile Upload: Client (Browser) zeigt keine Fehlermeldung an
0%
Description
{"message":"<table class='table table-hover qfq-table-80'><thead><tr><th colspan='2'>Error<\/th><\/tr><\/thead><tr><td>Timestamp<\/td><td>2018.05.16 21:11:10 +0200<\/td><\/tr><tr><td>Code<\/td><td>1502<\/td><\/tr><tr><td>Message<\/td><td>Filetype not allowed. Allowed: application\/pdf<\/td><\/tr><\/table>","status":"error"}
- Das JSON ist in QFQ 0.25.11a und 18.4.4 sehr aehnlich.
- In 0.25.11a kommt noch der alte drop down Dialog (upload.message.ok.png) - ok.
- In 18.4.4 kommt kein Dialog, dafuer wird ein spinning gear angezeigt - error.
Koenntest Du Dir das mal anschauen?
- Ich koennte mir vorstellen das alle Versionen mit den 'neuen' Alerts betroffen sind.
- Es ist relativ dringend, es gab schon einige Beschwerden (PT2, LK, GRC).
URLs zum testen:
1) OK: https://webwork16.math.uzh.ch/lehrkredit/cr/
2) Broken: https://webwork16.math.uzh.ch/lehrkredit/work/
3) Broken: https://webwork16.math.uzh.ch/my
Bei 1 & 2: einloggen mit shortname Password > Admin / Pool > Status: 95 > Request > Uploads to request: Applicant, Admin - NEW > Upload > Filetype: ALL > 'file das kein PDF ist auswaehlen'> BANG
Files
Related issues
Updated by Carsten Rose almost 6 years ago
- Related to Bug #5843: File Upload: Handhaben unzulässiger Dateitypen added
Updated by Benjamin Baer almost 6 years ago
Workaround fix, not sure why it doesn't work the proper way.
Message still looks bad, with the table and all. Looks more like it wants to tell you that the webserver just exploded instead of just saying that you uploaded the wrong file.
Propose change:
Return message as an object.
message.title = Error
message.text = Filetype not allowed. Allowed: application\/pdf
message.errorCode = Monkey
message.timeStamp = 2018.05.16 21:11:10 +0200
Quick workaround:
message = "<b>Error</b><br>Filetype not allowed. Allowed: application\/pdf"
Updated by Benjamin Baer almost 6 years ago
- Related to Bug #6139: File Upload: keine Fehlermeldung wenn Datei zu gross added