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

knowak created an issue. See original summary.

jrockowitz’s picture

Temp 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.

jrockowitz’s picture

knowak’s picture

Thanks 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.

jrockowitz’s picture

Status: Active » Closed (works as designed)