file upload mutate on upload
When I mutate the data, i only get the generated filename, but i need the original uploaded file name for display purposes, is there a way to do this?
->afterStateUpdated(function (TemporaryUploadedFile $state, callable $set) {
if ($state) {
$name = $state->getClientOriginalName();
$ext = $state->getExtension();
$set('filename_uploaded', $name . '.' . $ext);
}
})