Open mirekys opened 5 years ago
Thanks for the PR @mirekys.
I'm having a look at it now and will update it. There's a couple of things I'd like to fix like ensuring the FileStorage class is independent of the application state (i.e. current_files_rest
) and having a look at what the base interface should look like because there's already Invenio-XRootD and Invenio-S3 which implement the interface.
Adds the the possibility to customize the checksums that are computed on files by using the following config options:
When the current checksum algorithm changes, newly created files will have the new checksum. Fixity checking of old files having a checksum generated by a previous algorithm is still maintained (as long as the algorithm remains in the
FILES_REST_SUPPORTED_CHECKSUM_ALGORITHMS
option).