Even this code https://github.com/vimeo/vimeo-php-lib doesn't work for me.

I have changed all the necessary stuff but still i get two errors when changing the 'video path' which takes video name directly from 'file_name' (run time input).

1. Encountered an API error -- code 401 - Invalid consumer key (when i say $_FILES['file']['tmp_name'] or $_FILES['file']['name'])

2. "Valid file did not exist" Error message, (if i store name in variable first and call it there..)

And sweet part is when I'm giving video's name DIRECTLY, something like 'abc.mp4' - it is working fine!

Do let me know where exactly I'm wrong.