- πΊπΈUnited States smustgrave
The remaining task "Needs adding a check fort the filesize attribute on the preSave method" does this still need to happen
File entities always get file size on save, even when the filesize attribute is manually set.
public function preSave(EntityStorageInterface $storage) {
parent::preSave($storage);
$this->setSize(filesize($this->getFileUri()));
}
This forces Drupal to look up the file size upon migration (from Drupal 7), rather than using what is provided.
Check if the filesize attribute is already set before running the filesize method
Needs adding a check fort the filesize attribute on the preSave method
Code review
None
None
None
Needs work
9.5
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
The remaining task "Needs adding a check fort the filesize attribute on the preSave method" does this still need to happen