-
Notifications
You must be signed in to change notification settings - Fork 78
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
How to upload video thumbnail using PUT request? #90
Comments
In case someone else needs it I've found a way around it using standard node.js https module. Please note that this is only step 3 of the whole upload process:
Anyway it will be great if documentation will be updated with examples about thumbnail upload. Ideally we need only method that do all the steps needed to upload a thumbnail instead 4 different requests. Thanks |
We'll be adding a dedicated method to support thumbnail uploads soon! |
Is that module release? It should be similar to the .upload() where the asset is the first parameter in the function signature. The documentation states:
How do you set the body using the NodeJS SDK you supply? |
@1rosehip I tried your function for step 3 of the vimeo upload, but couldn't get it to work. I get a Also, why do you use |
It seems that they changed their API since I implemented this code. 411 is content length status code. Maybe use can try something like this? const opt = vimeoClient._buildRequestOptions({
method: 'PUT',
port: 443,
hostname: 'i.cloud.vimeo.com',
path: url.replace('https://i.cloud.vimeo.com', ''),
query: pathToImg,
headers: {
'Content-Type': 'image/jpg',
Accept: 'application/vnd.vimeo.*+json;version=3.4',
'Content-Length': length // Buffer.byteLength(p)
}
});
... |
Anyone who is coming here to try to create thumbnails from a frame of the video, you can check out my comment over here: |
Hello,
I'm trying to upload a video thumbnail following the https://developer.vimeo.com/api/upload/thumbnails#uploading-a-thumbnail docs.
What is the right way to implement Step 3 in documentation - PUT{link}?
I tried the following but It doesn't seem to work:
Thanks!
The text was updated successfully, but these errors were encountered: