Update MediaStorageService, fix improper path

pull/4151/head
Daniel Supernault 2 years ago
parent 083f506baf
commit 964c62da31
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -176,7 +176,7 @@ class MediaStorageService {
$file = $disk->putFileAs($base, new File($tmpName), $path, 'public');
$permalink = $disk->url($file);
$media->media_path = $base . $path;
$media->media_path = $file;
$media->cdn_url = $permalink;
$media->original_sha256 = $hash;
$media->replicated_at = now();

Loading…
Cancel
Save