Explorar el Código

Update MediaStorageService, fix improper path

Daniel Supernault hace 2 años
padre
commit
964c62da31
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Services/MediaStorageService.php

+ 1 - 1
app/Services/MediaStorageService.php

@@ -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();