Cannot create file entity
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3556100. -->
Reported by: [freelock](https://www.drupal.org/user/313537)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>After saving a file to the filesystem, we are trying to create a new file entity to tell Drupal about it, but it turns out file entities do not implement create access permissions.</p>
<p>I see <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-3"><a href="https://www.drupal.org/project/message/issues/3382782" title="Status: Closed (duplicate)">#3382782: Access denied to create entity message from ECA</a></span> reporting a similar issue for Message entities, which was resolved by altering the access permissions. Should ECA create a special case to allow creating file entities?</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Create a model that writes data to the file system. Attempt to create a file entity using the path to that file.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add a create access entity hook for file entities.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue