Try other format

parent e0b14994
...@@ -25,10 +25,10 @@ class MediaController extends Controller ...@@ -25,10 +25,10 @@ class MediaController extends Controller
$path = storage_path('app' . $file->path->getRelativeUrl()); $path = storage_path('app' . $file->path->getRelativeUrl());
return Image::make($path)->response(); //return Image::make($path)->response();
return response()->file($path, [ return response()->file($path, [
"Content-Type:$type", 'Content-Type' => $type,
]); ]);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment