Hi cleavinjosh,
For 1 site we have Drupal core update from 10.3.1 to 10.3.6, happened on last week of July 2024. But site's cache cleared, client was able to upload files also.
And we are using Nginx - Linux platform.
Hi Vinai,
I have checked the permission, no issue in that, checked with Server Team and Networking team also. And via IMCE module its getting uploading so its not a folder permission issue.
I have create a fix
akhilavnair → changed the visibility of the branch 3482750- to hidden.
Hi, Nothing happened, error happened by itself in that day for our client without any config/code change.
akhilavnair → created an issue.
Hi Team,
Any fixes are going to be pushing for this issue, I'm getting same issue.
THEME_preprocess_paragraph(&$variables) {
$media_id = $variables["paragraph"]->field_content_image->target_id;
$media_entity = Media::load($media_id);
$file_id = $media_entity->getSource()->getSourceFieldValue($media_entity);
$bg_file = File::load($file_id);
$path = $bg_file->createFileUrl();
}
This worked for me.
The $path variable has the folder path for the file. This logic can used in preprocess_page hook also by replacing the $variables["paragraph"]
with appropriate paragraph object.