【发布时间】:2020-08-06 11:33:18
【问题描述】:
我需要在刀片中显示在 storage/videos 中上传的视频,但我不知道该怎么做。 为了将它们上传到存储中,我将此代码放在 filesystems.php 中
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
'video' => [
'driver' => 'local',
'root' => storage_path(),
'url' => env('APP_URL').'storage/video',
'visibility' => 'public',
],
我尝试了许多路径组合,但没有人能工作
url/storage/video/VHqPwguZeM6mf4csBTfj.mp4
or
url/storage/VHqPwguZeM6mf4csBTfj.mp4
or
url/video/VHqPwguZeM6mf4csBTfj.mp4
谁能帮帮我?
谢谢!
【问题讨论】:
-
转到浏览器开发者工具中的
Network选项卡,并尝试查看它试图访问以获取视频的 URL。