-
Notifications
You must be signed in to change notification settings - Fork 6
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
Uploaded File replacement functionality (in File & Media fields) #89
Comments
Let's take a look at the new Media Entity File Replace module. It sidesteps a number of issues I was running into. In my initial testing, it works as I expected. Because it can only act on the edit form (and not on the add form), it shouldn't be possible to overwrite a file accidentally (e.g. file with same name already exists on another media entity.) We'll need to figure out the external cache piece, however. |
See code example from https://www.drupal.org/project/acquia_purge/issues/2911828#comment-12450381:
It would be nice if the Media Entity File Replace module provided a hook for us to use as a trigger. That said, in |
Media Entity File Replace added: 73fedef That takes care of media file entities. Still an issue with plain file fields. Will will be using those? Direct devs who create custom content types to use media files? Wiki started to contain these notes: https://github.com/unlcms/project-herbie/wiki/Site-Developer-Role-Notes |
Here's a core issue: https://www.drupal.org/project/drupal/issues/2648816. There's been nothing meaningful happening there - no patches have been offered since the issue was opened in Jan 2016.
This module will take advantage of a proposed hook_file_upload() function: https://www.drupal.org/project/drupal/issues/3065698.
The text was updated successfully, but these errors were encountered: