dear community,

I would like to automatically add a sha256 filehash to a Document field
after a binary file is posted to a ExtractingRequestHandler.
First i thought, that the ExtractingRequestHandler has such a feature, but
so far i did not find a configuration.
It was mentioned that I should implement my own  Update Request Processor
to calculate the hash and add it to a field.
The  SignatureUpdateProcessor seemed to be an out-of-the-box option, but it
only supports md5 and also does not access the raw binary stream.

The important thing is that i do need the binary stream of the uploaded
file to calculate a correct hashvalue (e.g. md5, sha256,..)
Is it possible to also arrange this with a ScriptUpdateProcessor and
javascript?.

thanks in advance for any help

Tom

Reply via email to