Kerala
Account created on 15 January 2015, almost 10 years ago
#

Recent comments

🇮🇳India akhilavnair Kerala

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.

🇮🇳India akhilavnair Kerala

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.

🇮🇳India akhilavnair Kerala

Hi, Nothing happened, error happened by itself in that day for our client without any config/code change.

🇮🇳India akhilavnair Kerala

Hi Team,
Any fixes are going to be pushing for this issue, I'm getting same issue.

🇮🇳India akhilavnair Kerala

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.

Production build 0.71.5 2024