0

当我尝试从 url 获取链接并将带有此链接的文件存储在存储中时,我的代码出现此错误

foreach ($value['subtitles'] as $d => $m) {
                $guzzle = new Client();
                $response = $guzzle->get($m['url']);
                $name = basename($m['url']);
                $new = str_replace('dd', 'ff', $name);
                 Storage::disk('public')->put('/zirnevis/' . $new, $response->getBody());
                File::create([
                    'title' => $new,
                    'type' => 'zirnevis'
                ]);

            }

和错误

fopen(C:\wamp64\www\jahanzirnevis\storage\app/public\zirnevis/download?d=YTo1OntzOjE6InMiO3M6NTY6Ii9zdWJ0aXRsZXMvcml2ZXJkYWxlLWZvdXJ0aC1zZWFzb24vZmFyc2lfcGVyc2lhbi8yMDY1MDM5IjtzOjE6InAiO3M6MjM6InJpdmVyZGFsZS1mb3VydGgtc2Vhc29uIjtzOjE6InQiO3M6Mzk6IlJJVkVSREFMRSBOZXcgWW9yayBDb21pYyBDb24gMjAxOSBWaWRlbyI7czoxOiJvIjtpOjY2NjM7czoxOiJpIjtiOjA7fQ==): failed to open stream: No error
4

0 回答 0