npm Formidable Upload, use with JS FormData on client
问题 I wanna send a file to the server with FormData by drag and drop, and save it to disk with Formidable in node. I used this code to send the file: https://github.com/felixge/node-formidable#example and it works, my server saves the data, but I can't send it via js FormData . I wrote this code, but it doesn't parse the received data as files, and shows them like fields. The code is describe this better: // Client code //inside drop event so i have files: files = event.dataTransfer.files; file =