Fix downloading files
This fixes two issues that prevented file download:
-
$result
is accessed instead of$file
. - The ID field is not selected, thus
$value
(contains the ID) has to be used instead to trying to access the ID field on the API result.
Fixes #3459307.