File Manager - How to upload a file from an app without uploading from fileDialog

See https://snippet.webix.com/uf7j097h

I am trying to understand how to use webix.getService("upload") and any other service required so that I can call an api based on "wfs-s3", by directly calling the api directly.

app.post("/upload", async (req, res, next)=>{
const busboy = new Busboy({ headers: req.headers });

busboy.on("file", async (field, file, name) => {
    console.log(req.body, name)
    const target = await drive.make(req.query.id,  name, false, { preventNameCollision: true });
    res.send(await drive.info(await drive.write(target, file)));
});

req.pipe(busboy);

})

Alternatively in the snippet how do I fulfill the method doFileSave() to save the myJsonFile object.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!