4teamwork / opengever.core

OneGov GEVER core package
11 stars 5 forks source link

Create an upload transform to reject files we cannot handle #5235

Open Rotonen opened 5 years ago

Rotonen commented 5 years ago

Harvest: OneGov GEVER - Softwarepflege (Refactoring/Bug)

Somewhat related to https://github.com/4teamwork/opengever.core/issues/2054

Some examples of the kinds of files:

1) Shared Excel files 2) Password protected PDFs 3) Password protected archives 4) Invalid template files

There are probably also other kinds of files, but support can be added after the fact down the line as we encounter them.

Should gracefully reject via:

1) Forms 2) Wizards 3) Mail-in 4) Quickupload

deiferni commented 5 years ago

Don't forget empty files like the ones created with e.g. touch foo.docx.

Apparently Windows Explorer creates empty files with its "New File" functionality. See https://extranet.4teamwork.ch/support/gever-ai/tracker/328.