-
Notifications
You must be signed in to change notification settings - Fork 71
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
Is there any way to view the file checksum from the drupal UI? #1102
Comments
Checksums managed by Riprap or by Drupal?
|
Drupal. We have filehash enabled, thus I assume it calculates it. However, not sure where that info is stored. If we have another way to display this info, that should be sufficient too. |
Don't know off top of my head but if the filehash module doesn't provide a way, you could write a field plugin for the Media view like the one I have for Islandora Riprap (https://github.com/mjordan/islandora_riprap/blob/master/src/Plugin/views/field/RiprapResults.php) to grab the checksum and render it. Replying on my phone now but can provide more info tomorrow if you want.
|
IIRC it stores checksums in a separate table, but then stuffs them into the file entity early on so that it's available there (and not coming from a bookeeper or 'manager' service that you have to inject in). I think it also makes it available through views, so you could alter the main File view (admin/content/file) to include the hash in the results. Or just make a custom one. And this is pure speculation on my part, but if you wanted it in the UI on Media display, maybe a pseudo field? |
@dannylamb Is there a way to provide checksum and check it when a file gets uploaded via UI? Not an urgent issue. I remember that if a file or media gets created via REST, it will check the checksum. |
The |
Also relevant is #867. |
Also, just realized that there's a field formatter for files included in the |
@mjordan @dannylamb |
Is there any way to view the file checksum from the drupal UI?
The text was updated successfully, but these errors were encountered: