mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-13 03:50:02 -04:00
Fix config
This commit is contained in:
parent
69a86b5a14
commit
e0805868a6
2 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
// This is a test file to upload files to the Nebula server
|
||||
import { FormData, File } from "formdata-node";
|
||||
import { fileFromPath } from "formdata-node/file-from-path";
|
||||
import config from "./config.json" assert { type: "json" };
|
||||
import fs from "fs";
|
||||
|
||||
const config = JSON.parse(fs.readFileSync("config.json", "utf8"));
|
||||
const form = new FormData();
|
||||
// const file = new File(["My hovercraft is full of eels"], "example.txt");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue