Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key "upload_link" #290

Open
chiporgar7 opened this issue Apr 29, 2021 · 0 comments
Open

Undefined array key "upload_link" #290

chiporgar7 opened this issue Apr 29, 2021 · 0 comments

Comments

@chiporgar7
Copy link

Hello I have copied as it is in the documentation of how to upload a video like this

$file_name = "{path_to_a_video_on_the_file_system}";
$uri = $client->upload($file_name, array(
  "name" => "Untitled",
  "description" => "The description goes here."
));

echo "Your video URI is: " . $uri;'

but I get an error like this

Captura de Pantalla 2021-04-29 a la(s) 15 35 50

ok, actually my code is like this.

 $uri = Vimeo::connection()->upload($this->video->getPathName(), array(
            "body" => $this->_title_,
            "description"  => $this->_description_,
          ));

ok, I know it says the key is missing from the array. I have added it but it keeps giving me the same error

 $uri = Vimeo::connection()->upload($this->video->getPathName(), array(
            "body" => $this->_title_,
            "description"  => $this->_description_, 
            "upload_link" =>  (but what do I put here?)

          ));

in the upload_link key I have put whatever. but it doesn't work either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant