vimeo / laravel

A Vimeo bridge for Laravel
https://developer.vimeo.com
Apache License 2.0
399 stars 88 forks source link

file_put_contents(): Write of 211 bytes failed with errno=13 Permission denied #93

Open electronic-club opened 2 years ago

electronic-club commented 2 years ago

I am trying to upload a video on Vimeo using Laravel. by upload I get the error file_put_contents(): Write of 211 bytes failed with errno=13 Permission denied

a file of 0 mb is getting uploaded at vimeo panel. I am on localhost, XAMPP, Windows, but I try also on online server larafel forge etc and is the same error

cpelegrin commented 2 years ago

Here is with the same problem without solution

I tried with various codes, but nothing is working.

this is my controller:

` namespace App\Http\Controllers;

use Illuminate\Http\Request; use Vimeo\Laravel\Facades\Vimeo;

class TesteTcc extends Controller { function testeVimeDO(Request $request) {

$uri = Vimeo::upload($request->video->path(), array(
  "name" => $request->tituloVideo,
  "description" => "The description goes here."
));

echo "Your video URI is: " . $uri;
dd($uri);

} }`

alejandrofloresm commented 2 years ago

This error is related to the directory where TusPhp\Cache\FileStore.php is pointing to.

I have not found a way to change the value.