Answer the question
In order to leave comments, you need to log in
How to upload a document (GIF animation) via VK API correctly?
At first there were problems with getting the server to download the document... found a link here ,
send a request to docs.getWallUploadServer specifying only the access_token. - then the url for loading the document began to come.... I send a gif to the url, but there is an unknown error in the response... I use the restler module
restler.post(doc_upl_serv, {
multipart: true,
data: {
'file1':restler.data('doodle.'+cr,gf.headers['content-length'], data)
}
}).on('complete', function(reslt,data) {
if (reslt instanceof Error) {
console.log('Error:',reslt.message);
} else {
console.log(reslt.headers+" docs headers");
grovyGuns.push(reslt);
calback();
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question