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

Created on 29 February 2024, about 1 year 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.

📌 Task
Status

Active

Version

10.1

Component
File system 

Last updated about 4 hours ago

Created by

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

Comments & Activities

  • Issue created by @Swathi257
  • Status changed to Closed: works as designed 2 months ago
  • 🇳🇿New Zealand quietone

    @Swathi Manivannan, I hope you have made progress on this.

    As you can see by the lack of discussion here the Drupal Core issue queue is not the ideal place for support requests. The 'support request' option is there for filing support issues for contributed modules and themes. There are several support options listed on our support page (Community > Support at the top of Drupal.org) and there is Drupal Slack . You may get better replies in one of those places.

    And Drupal 10.1 is out of security support so I am closing this issue.

Production build 0.71.5 2024