File upload permission error showing in Media file field and CKEditor Image upload option

Created on 23 October 2024, 7 months ago

Problem/Motivation

Even if the folder has permission to upload, it shows below error messages as of now and this was working before properly till October 4 2024. Issues in different site versions,

  • Drupal Version: 10.3.6 - PHP Version: 8.3.9 - MySQL Version: 8.0.37-azure
  • Drupal Version: 10.1.6 - PHP Version: 8.2.21 - MySQL Version: 8.0.37-azure
  • Server: nginx/1.26.1
  • Platform: Azure Linux

If we enabled IMCE module and enabled for the file field in media, then user is able to upload via IMCE file browser.

  1. The upload directory public://FOLDER for the file field field_NAME could not be created or is not accessible. A newly uploaded file could not be saved in this directory as a consequence, and the upload was canceled.
  2. Symfony\Component\HttpKernel\Exception\HttpException: Destination file path is not writable in Drupal\ckeditor5\Controller\CKEditor5ImageController->upload() (line 157 of /.../core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php).

Steps to reproduce

  1. Any supporting file format in /media/add/document or /media/add/image shows error from file.module
  2. Image upload option from CKeditor5 in all nodes shows error number 2 listed above in CKEditor5ImageController

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Active

Version

10.3 โœจ

Component

configuration entity system

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia akhilavnair Kerala

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024