Problem/Motivation
I believe the temporary files created by a File element type is deleted by the cron job before the user can successfully submit the form producing the error:
Drupal/Core/File/Exception/FileNotExistsException: File could not be copied because it does not exist. in Drupal/Core/File/FileSystem->prepareDestination() (line 466 of /var/www/html/web/core/lib/Drupal/Core/File/FileSystem.php).
Sounds like a similar issue in https://www.drupal.org/project/webform/issues/3218296 and I was wondering if the patch would fix this also?
Comments
Comment #2
jrockowitz commentedTemp files should only be deleted after 5 hours. Are you using a load balanced server/host? Load balanced server can lose track of the uploaded file.
Comment #3
jrockowitz commented@see https://docs.acquia.com/cloud-platform/manage/files/broken/
Comment #4
knowak commentedThanks jrockowitz, I misinterpreted how the cron cleared the temp files.
We are using a load balanced server and have implemented sticky sessions but did not set a permanent temporary files directory. We will try that, thanks for your help.
Comment #5
jrockowitz commented