albusSeverus's avatar

Check encrypted file on File Uploads

Hi all,

I have a script which uploads file and checks for file size and type(pdf only) for my web-app, saves it the folder, saves path in the dbase.

My question: How do I check if the file uploaded by the user is encrypted or password protected and prevent that?

My Laravel knowledge: basic, can get things done.

0 likes
5 replies
albusSeverus's avatar

@TRAY2 - Im referring to the pdf file uploads with password protection or some other form of encryption. E.g. like uploading resume or transcript pdf but locked by password protection. How do I detect and prevent those ?

albusSeverus's avatar

@TRAY2 - Thanks. Yeah something like this, but using the Laravel functions. Will try to create something from this.

1 like

Please or to participate in this conversation.