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) {
|
app.post("/api/upload", function (req, res) {
|
||||||
//File upload
|
//File upload
|
||||||
var form = new formidable.IncomingForm(); //Receive form
|
var form = formidable({}); //Receive form
|
||||||
var formData = {
|
var formData = {
|
||||||
files: {},
|
files: {},
|
||||||
fields: {},
|
fields: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user