Replies: 1 comment
-
I have solve this by use direct data access, hope this can help someone who has encountered this problem like me. $container = Application::getInstance()->getContainer();
$connection = $this->container->get('database');
$files = $connection->execute(
"SELECT `filename_disk` AS `filename_disk`,
`filename_download` AS `filename_download`,
`type` AS `type`
FROM `directus_files`
WHERE id IN (".implode(',', $ids).");"
)->toArray(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to send an email notification when I submit the form, so I use a hook
but the
$data
is not include theattachments
which store attachment files, so I try to usebut I get an empty
attachments
array and other fields is work, justattachments
item is missing, I don't know why, maybe the relation fields is not appled at this time?then I try to query
directus_files
directly, and I getI can't find a way to get the
full_url
of the message attachments, Can anyone help me?Beta Was this translation helpful? Give feedback.
All reactions