Monday, 4 April 2016

Using multer to get a file from jQuery ajax and send back json of file size

I'm working on an exercise where I need to send a file to a node.js server then have the node.js server send back the file size in json for the webpage to display in an alert. Here is my nodejs code, here is my html code, and here is my error.Right now I'm just trying to display to the node console that I've received the data correctly. If I send the file only using a form POST then it works but then I can't send the json data back without loading a page.

Submitted April 05, 2016 at 02:43AM by audiodev

No comments:

Post a Comment