Node.js appears to be missing the multipart module

I am trying to parse form data, including upload files with a node.js http server. All of the tutorial type articles I have found use a require("multipart"); to include the multipart module, but when I try the same I get:

Error: Cannot find module 'multipart'

I also can't find it in the current api docs (though it is in the google cached version). So, has this module been removed from the standard installation or is there something else that does the job?

Answers


Multipart.js is now standalone module.


There is a better multipart parser now. You can find it at: http://github.com/felixge/node-formidable


Run a cmd window, there go to the folder that contains the files where you are trying to use the multipart module. Then, run the following command:

npm install multipart

That's all.


Need Your Help

C# - Fill a combo box with a DataTable

c# .net combobox datatable sharpdevelop

I'm used to work with Java where large amounts of examples are available. For various reasons I had to switch to C# and trying to do the following in SharpDevelop:

How to create a popup window (PopupWindow) in Android

android popupwindow android-popupwindow

To create a simple working PopupWindow, we need to do the following: