Skip to content

Commit

Permalink
store custom properties for vapor uploads (#398)
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Anderson <[email protected]>
  • Loading branch information
kylekanderson and Kyle Anderson authored Aug 23, 2023
1 parent b8f70e6 commit 6e9344b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Fields/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ private function makeMediaFromVaporUpload(array $file, HasMedia $model): FileAdd
$url = Storage::disk($disk)->temporaryUrl($file['key'], Carbon::now()->addHour());

return $model->addMediaFromUrl($url)
->usingFilename($file['file_name']);
->usingFilename($file['file_name'])
->withCustomProperties($this->customProperties);
}
}

0 comments on commit 6e9344b

Please sign in to comment.