unipept / unipept-desktop

This is the desktop application that accompanies the Unipept project.
https://unipept.ugent.be
MIT License
7 stars 0 forks source link

Add check for binary files (and block them) #128

Closed pverscha closed 3 years ago

pverscha commented 3 years ago

Some users are apparently loading in binary peptide files in Unipept Desktop, which causes our backend to crash. The desktop app should check if a given file is text-based before accepting it.

ninewise commented 3 years ago

Could these be compressed files?

pverscha commented 3 years ago

Yes, these could also be compressed files. We should, nonetheless, inform the user that he's using a wrong type of input file. I'll try to make the error message as clear as possible in order not to confuse our users :)