Getting File could not be copied error while replacing a exsting pdf file

Created on 29 February 2024, 10 months ago

Hi,

Im getting the below error while replacing a existing pdf with the new one.

File 'temporary://sample.pdf' ('/tmp/sample.pdf') could not be copied because it does not exist. in
Drupal\Core\File\FileSystem->prepareDestination() (line 456 of core/lib/Drupal/Core/File/FileSystem.php).

The temporary folder path configured in settings.php is $settings['file_temp_path'] = '/tmp'; and I can see the temporary folder path in admin/config/media/file-system is "/tmp".

This configurations seems to work perfectly on staging but not in Prod. No permissions issues also. Pleas help.

Thanks in advance.

💬 Support request
Status

Active

Version

10.1

Component
File system 

Last updated about 20 hours ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024