34
Views
2
Comments
How to detect whether a uploaded file is password protected or not
Question
Application Type
Reactive

Hi Team.

I am uploading file with different extension (docx, xlsx, pptx, pdf) but before uploading i want to check whether my file is password protected or not.

How can I check?

Please suggest.


Regards

Dipali

2022-07-22 08-49-20
Laura Fidalgo

Hi @Dipali Shrawane ,

You can use JavaScript to do that. Please, refer to the sample in this post:

https://stackoverflow.com/questions/41939105/check-uploading-file-is-password-protected-or-not-in-javascript-or-jquery

Hope this helps! :)


2024-01-09 08-05-30
Dipali Shrawane

Yes, tried with different JS code, tried with above code as well. But JS code not able to read files.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.