fix formidable backend
This commit is contained in:
parent
52ee03d286
commit
41f62d2303
@ -135,7 +135,7 @@ export default function startBackendServer(port) {
|
||||
*/
|
||||
app.post("/api/upload", function (req, res) {
|
||||
//File upload
|
||||
var form = new formidable.IncomingForm(); //Receive form
|
||||
var form = formidable({}); //Receive form
|
||||
var formData = {
|
||||
files: {},
|
||||
fields: {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user