Return value is not checked so the ingestion process continue even if the copy failed.
Happened to me with a big file. There was not enough space left in /tmp so Omeka ingested a truncated version of the file.
I think the same problem exists with SideloadDir
To reproduce:
Create a 2M temporary fs: sudo mount -t tmpfs -o size=2M tmpfs ~/tmp
https://github.com/omeka-s-modules/FileSideload/blob/f6bf93056bbc58f1e7672372d7a5418b9216a7c7/src/Media/Ingester/Sideload.php#L113
Return value is not checked so the ingestion process continue even if the copy failed.
Happened to me with a big file. There was not enough space left in /tmp so Omeka ingested a truncated version of the file. I think the same problem exists with SideloadDir
To reproduce:
sudo mount -t tmpfs -o size=2M tmpfs ~/tmp
~/tmp
in local.config.php