Hi, i'm trying to save a file dowloaded with the "Upload" plugin and for some reason, it doesn't work. I get a "OS error 30 or 2" or "Forbidden path" when using "/Documents"
I have tried many different downloadPath.
const downloadPath = 'Documents';
const filePath = await join(downloadPath, 'reporting-sheet.xlsx');
// log the file path
message.info('Downloading to: ' + JSON.stringify(downloadPath));
await download(
useURL, // the URL to download
filePath, // the path to save the file
({ progress, total }) => console.log(`Downloaded ${progress} of ${total} bytes`), // a callback that will be called with the download progress
new Map([['Authorization', `Bearer ${accessToken}`]])
);