Can not attach .zip .csv types to Invoice

Hi,

I try to attach a .csv file to an invoice and get an error that goes: “An error occurred, Please refresh the page and try again”. Same goes for .zip files. However when changing the .csv extension to .xls, the file attaches correctly.

.pdf, .doc, .xls file types all attach ok to an invoice, however for some reason .csv en .zip files don’t. Looks as if only certain file extensions are permitted. Is this the case?

Frans.

Correct, only select file types are allowed.

https://github.com/invoiceninja/invoiceninja/blob/34e7b0aaafea9f2676388b1ffa345065afb9e18d/app/Models/Document.php#L53