'Can't upload node js yandex disk file
https://github.com/Collage/yandex-disk I am using this library. I can successfully login to Yandex disk and get the list of files in the directory without any problems. So logging in successfully. But when I try to upload a file I get an error. Can you please help?
var YandexDisk = require('yandex-disk').YandexDisk;
var disk = new YandexDisk("user", "pass");
console.log(disk)
disk.readdir('/', (err, response) => {
console.log('callback error', err);
console.log('callback response', response);
});
disk.uploadFile('./undefined.jpg', '/', function(e) {
console.log(e);
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

