【问题标题】:Vimeo uploading Laravel giving -file_put_contents():Write of 207 bytes failed with errno=13 Permission deniedVimeo 上传 Laravel 给 -file_put_contents():Write of 207 bytes failed with errno=13 Permission denied
【发布时间】:2022-01-08 04:33:47
【问题描述】:

// 控制器

    $file = $request->file('video');
    $uri = Vimeo::upload($file, [
        'name' => 'test',
        'description' => 'easy upload'
    ]);

    return $uri;

file_put_contents():写入 207 字节失败,errno=13 权限被拒绝

【问题讨论】:

标签: laravel api vimeo


【解决方案1】:

运行应用程序的进程需要临时目录(默认为 /tmp)的写入权限,TusUpload 才能工作。

为了让 Laravel $request->file 工作,该进程还需要对文件目录的写权限(这个默认为应用根目录下的 public/uploads,但可以配置)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-22
    • 2018-07-21
    • 2015-11-26
    • 2020-10-23
    • 2020-12-07
    • 2017-02-12
    • 2020-12-12
    • 1970-01-01
    相关资源
    最近更新 更多