Project

General

Profile

Actions

Bug #5843

closed

File Upload: Handhaben unzulässiger Dateitypen

Added by Elias Villiger about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Elias Villiger
Target version:
Start date:
20.04.2018
Due date:
% Done:

100%

Estimated time:
Discuss:
Prio Planung:
Vote:

Description

Ausgangslage:

FormElement upload definiert mit

accept = .pdf


Related issues

Related to QFQ - Bug #6023: File Upload: Client (Browser) zeigt keine Fehlermeldung anClosedBenjamin Baer16.05.2018

Actions
Actions #1

Updated by Benjamin Baer about 6 years ago

accept checkt auch auf MIME Type, ergo nicht .pdf verwenden sondern application/pdf

Bsp: accept = image/*,application/pdf

Das Endungszeug sieht mehr wie ein Workaround fuer sachen wie .R aus. Ist auch sinnlos da nur Windows den Dateityp nach Endung feststellt, auf mac oder linux brauchen dateien keine bestimmte Endung (ergo es kann sein das PDF Files ohne Endung daher kommen).

Actions #2

Updated by Carsten Rose about 6 years ago

  • Target version set to 55
  • 'application/pdf' ist gut und sollte .pdf und .PDF verstehen
  • Unangenehm wird es, wenn mehr als ein Dateityp benoetigt wird. #5578
Actions #3

Updated by Carsten Rose almost 6 years ago

  • Status changed from New to In Progress
  • Assignee set to Carsten Rose
  • Target version changed from 55 to 18.6.0
  • Fehler reproduzierbar.
  • Returnstring ist zwar JSON, sollte aber vielleicht keine HTML Table enthalten.
    {"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 20:00:28 +0200<\/td><\/tr><tr><td>Code<\/td><td>1502<\/td><\/tr><tr><td>Message<\/td><td>Filetype not allowed. Allowed: image\/*,application\/pdf,.R,.m,.rmd<\/td><\/tr><\/table>","status":"error"}
    
Actions #4

Updated by Carsten Rose almost 6 years ago

  • Related to Bug #6023: File Upload: Client (Browser) zeigt keine Fehlermeldung an added
Actions #5

Updated by Carsten Rose almost 6 years ago

  • Target version changed from 18.6.0 to 18.10.3
Actions #6

Updated by Carsten Rose almost 6 years ago

  • Assignee changed from Carsten Rose to Elias Villiger
Actions #7

Updated by Elias Villiger almost 6 years ago

  • Status changed from In Progress to Closed
Actions #8

Updated by Carsten Rose over 5 years ago

  • Target version changed from 18.10.3 to 18.9.2
Actions

Also available in: Atom PDF