SpatieMediaLibraryFileUpload Save on Upload

Any suggestions for saving a file on upload? Easy to do with on a regular field by doing something like
->afterStateUpdated(function ($state) use ($tenancy) {
    $tenancy->update([
        'foo' => $state,
    ]);
}),
but not sure what magic is needed for an upload field
Was this page helpful?