Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Not sure if this is by design or configurable, but when importing files from a rest export files are never moved from temp to public storage (as per the default behavior when creating such entities from the UI).
Comments
Comment #1
Wim LeersFrom
\Drupal\hal\Normalizer\FileEntityNormalizer::denormalize()
:i.e. it's up to the recipient of
denormalize()
to callsave()
, which would move it fromtemporary://
topublic://
.This is exactly in line with what
\Drupal\hal\Normalizer\ContentEntityNormalizer::denormalize()
does: