New answers tagged

0

You can use these to get file name and file url respectively (Drupal 7.67 Entity API 1.9): [node:field-document:0:file] [node:field-document:0:file:url]


0

Filezilla allowed me to change the permissions from the the Filezilla console when cpanel could not Drupal Docs


0

*User "anoopjohn" in his comments was right. I was altering the wrong PHP.INI file! Thanks anoopjohn. Then following the instruction on "drupal4u.org/howtos/how-increase-file-upload-size-your-phpini-or-htaccess-file". I used the "devel" module's PHPinfo() button to find out where the correct php.ini file lived.


4

You can use entityQuery: $fid = 13141; $usedIn = \Drupal::entityQuery('media') ->condition('field_media_image.target_id', $fid) ->execute(); Example response: Array ( [15105] => 13109 )


Top 50 recent answers are included