diff --git a/src/Tempest/Database/src/Casters/UploadCaster.php b/src/Tempest/Database/src/Casters/UploadCaster.php new file mode 100644 index 000000000..cbc9a7e24 --- /dev/null +++ b/src/Tempest/Database/src/Casters/UploadCaster.php @@ -0,0 +1,23 @@ +uploadedFile->getClientMediaType(); } + + public function __toString(): string + { + return (string) $this->getClientFilename(); + } }