Problem/Motivation
Without the call to file_usage_add, file_managed_file_validate() error occurs upon saving the form, saying that the uploaded file may not be referenced.
Steps to reproduce
TBD
Proposed resolution
See patch
Remaining tasks
Review patch
User interface changes
Improved exception handling
API changes
See patch
Data model changes
N/A
Issue fork file_entity-3475892
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
joseph.olstadComment #5
joseph.olstadComment #7
joseph.olstadComment #10
joseph.olstadComment #11
joseph.olstadhttps://www.drupal.org/project/file_entity/releases/7.x-2.40