https://discord.gg/botpress logo
Using webdav...
# 🌎general
d
Hello, wondering if there is any experience about using webdav for retrieving/saving files? Should I use sftp instead as a file repository? I tried js code with this script but I guess Botpress does not allow webdav?
Copy code
import { createClient } from "webdav";
// Set NODE_TLS_REJECT_UNAUTHORIZED to 0
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';

const client = createClient("https://webdav.example.com", {
    authType: "digest",
    username: "myusername",
    password: "mypassword"
});

// Get directory contents
const directoryItems = await client.getDirectoryContents("/");
console.log(directoryItems);
Any thoughts? Thanks!