Skip to content

Commit b44ceae

Browse files
committed
Fix Upload File
- Update UploadField.php to support Laravel 9 since Laravel 9 using Flysystem v3 and the location of file cannot be empty
1 parent 2633381 commit b44ceae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form/Field/UploadField.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ public function destroy()
497497
$this->destroyThumbnail();
498498
}
499499

500-
if ($this->storage->exists($this->original)) {
500+
if (!empty($this->original) && $this->storage->exists($this->original)) {
501501
$this->storage->delete($this->original);
502502
}
503503
}

0 commit comments

Comments
 (0)