Upload file with node JS
npm i @juliendu11/uptoboxapi
const uptoboxAPI = require('@juliendu11/uptoboxapi');
(async () => {
let value = await uptoboxAPI.uploadOneFile('{TOKEN}','{FILE}')
console.log(value)
//{
// name: 'filename',
// size: filesize,
// url: 'https://uptobox.com/rieo9f88dudx',
// deleteUrl: 'https://uptobox.com/rieo9f88dudx?killcode=6gep5zig3g'
// }
})();
const uptoboxAPI = require('@juliendu11/uptoboxapi');
(async () => {
const filesPath =[
'./package.json',
'./package-lock.json'
]
let value = await uptoboxAPI.uploadMutlipleFiles('{TOKEN}',filesPath)
console.log(value)
})();