diff --git a/src/behaviors/FileBind.php b/src/behaviors/FileBind.php index ec79bc9..f79343c 100644 --- a/src/behaviors/FileBind.php +++ b/src/behaviors/FileBind.php @@ -36,6 +36,7 @@ public function bindSingle($storage, $ownerId, $ownerType, $fileId) if ($file) { $this->deleteCurrentFiles($storage, $ownerId, $ownerType, $file); $file->updateAttributes($file->getDirtyAttributes()); + $file->setStorage($storage); } } return $file;