Answer the question
In order to leave comments, you need to log in
Why doesn't the file upload to Yandex Disk?
Guys, I don’t understand what’s wrong, I ask for help.
You need to upload the file to the Yandex disk, I took
npm for this https://github.com/Kolyaj/yandex-disk
I write like this
var YandexDisk = require('yandex-disk').YandexDisk;
var disk = new YandexDisk('login', 'password');
disk.uploadFile('/var/www/file_image.jpg', '/', function(e) {
console.log(e);
});
Answer the question
In order to leave comments, you need to log in
_request: function(method, path, headers, body, responseType, callback) {
set a breakpoint and see.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question