I have used bulletproof php in the past for secure picture file uploads and trying recently for pdf and word files, it responded with an error message : 'Invalid File! Only (pdf, docx) image types are allowed', making me understand it will probably just handle image files as I couls still realise in the script here:
$doc_file = new Bulletproof**Image**($_FILES);
$doc_file->setMime(['pdf', 'docx']) ->setLocation('uploads');
I even did a fast search in the bulletproof.php file for the keyword 'pdf', but it returned nothing.
But researching online, some people seem to have used it for pdf file downloads but couldn't be more explicit about how, so I will like to know if there is someone here who has used it before please can you enlighten me or better still refer me to another library as good and simple to use as bulletproof php for file (word, pdf) uploads.