Probably sufficient to test on file extension and/or MIME? Or doesn't PHP's magic file handle this sort of thing? We should only be allowing LibreOffice Writer/compatible input formats (which we can probably just limit to doc/docx/rtf/odt for simplicity's sake), plus PDF.
Probably sufficient to test on file extension and/or MIME? Or doesn't PHP's magic file handle this sort of thing? We should only be allowing LibreOffice Writer/compatible input formats (which we can probably just limit to doc/docx/rtf/odt for simplicity's sake), plus PDF.