Skip to content
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

Auto-populate Original Name based on uploaded file #1439

Open
dannylamb opened this issue Feb 13, 2020 · 2 comments
Open

Auto-populate Original Name based on uploaded file #1439

dannylamb opened this issue Feb 13, 2020 · 2 comments
Labels
Type: enhancement Identifies work on an enhancement to the Islandora codebase

Comments

@dannylamb
Copy link
Contributor

Now that we're sanitizing file names upon upload, it would be nice if we could auto-populate the Original Name for a media based on the name before it gets sanitizied. I'm not sure how possible this is, and we may have to wait for the fix to be in core to really do this (it works on symfony events, so it should be easy to manipulate). See: https://www.drupal.org/node/2492171

@kstapelfeldt kstapelfeldt added Type: enhancement Identifies work on an enhancement to the Islandora codebase and removed enhancement labels Sep 25, 2021
@rosiel
Copy link
Member

rosiel commented Jul 31, 2022

If I understand, "we're sanitizing file names upon upload" means we're installing transliterate_filenames in the Playbook and install profile. And that @seth-shaw-asu did something (maybe under his previous handle) that populated the Original File field. Is it public?

@seth-shaw-asu
Copy link
Member

We populated it with our Migration API configurations. To do this via the Web UI you may be able to do this via some JavaScript that grabs the original name before the transliterate changes it. Workbench could probably also be updated to do this (if it doesn't already).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement Identifies work on an enhancement to the Islandora codebase
Projects
Development

No branches or pull requests

4 participants