What would be the best way for a POST method to accept uploading password protected pdf/doc files?

Socks93

Active member
Joined
Oct 22, 2021
Messages
30
Programming Experience
Beginner
Hi,

I've been asked to rectify an issue which occurs when uploading password protected doc/docx files. What would be the best way to achieve this? we currently have a list of signatures which work fine, however as mentioned when testing this api call with password protected files it returns 400 status code "file is not supported or is invalid"

Any help would be much appreciated.

Thanks
 
Last edited:
You would have to talk to the service owner where you are uploading the document to. From the C#/.NET Framework point of view, uploading a file is just uploading a long stream of bytes. It doesn't really care about the contents of the file.
 

Latest posts

Back
Top Bottom