Spaces:
Paused
Paused
plsgivemeachane
commited on
Commit
·
10dbd33
1
Parent(s):
ffbb8f6
Error checking 4
Browse files
index.js
CHANGED
|
@@ -418,11 +418,11 @@ app.post("/auth/delete", async (req, res) => {
|
|
| 418 |
|
| 419 |
app.post("/file/upload", async (req, res) => {
|
| 420 |
// Try to write file
|
| 421 |
-
fs.writeFileSync("uploads/"
|
| 422 |
|
| 423 |
// List file in /uploads/
|
| 424 |
-
const
|
| 425 |
-
console.log(
|
| 426 |
|
| 427 |
|
| 428 |
|
|
|
|
| 418 |
|
| 419 |
app.post("/file/upload", async (req, res) => {
|
| 420 |
// Try to write file
|
| 421 |
+
fs.writeFileSync("uploads/test.txt", 'TEST');
|
| 422 |
|
| 423 |
// List file in /uploads/
|
| 424 |
+
const tests = fs.readFileSync("uploads/test.txt");
|
| 425 |
+
console.log(tests)
|
| 426 |
|
| 427 |
|
| 428 |
|