-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a FetchDigestFromDrupal plugin #44
Comments
The "File Checksum" view allows us to get a SHA1 hash via REST like this:
results in But it uses File IDs, not UUIDs, which are what are supplied by JSON:API. Maybe we should create our own view that takes the UUID as its parameter? |
I've modified the "File Checksum" view (not sure which module creates this view, probably filehash?) to use the file's UUID instead of its ID, and it appears to work. We could have islandora_riprap create its own version of this view on installation. |
Started off by creating a View to get a file's hash, but that returned the hash stored in the Drupal database for that file. Instead, added in mjordan/islandora_riprap#33 a controller that uses PHP's |
Pseudocode for this plugin:
(The fieldname of the file, in this case "field_media_image", varies by media type, e.g.,
|
Resolved with c740b61. |
Not sure about best source of digests but will investigate and go from there.
The text was updated successfully, but these errors were encountered: