node-upload
Simple file uploader for NodeJS applications
Example
var NodeUpload = ; // First parameter: Optional callback for rename (only replace if defined) // Second parameter: Optional uploading route (Default: "./uploads/") // NOTE: Create route if not exist // Third parameter: Optional configuration var upload = { return filefieldname + '-' + Math; } "./myroute/" fieldSize: 15 ; // Simple file (Dot is deleted when you check the type. Case sensitive extensions) // No extensions (default: [.png, .jpg, .jpeg]) upload; // Simple extension (Dot is deleted when you check the type. Case sensitive extensions) upload; // Array extension (Dot is deleted when you check the type. Case sensitive extensions) upload; // Array of files // No extensions (default: [.png, .jpg, .jpeg]) upload; // Simple extensions (Dot is deleted when you check the type. Case sensitive extensions) upload; // Array extension (Dot is deleted when you check the type. Case sensitive extensions) upload; // Array of fields // No extensions (default: [.png, .jpg, .jpeg]) upload; // Simple extension (Dot is deleted when you check the type. Case sensitive extensions) upload; // Array extension (Dot is deleted when you check the type. Case sensitive extensions) upload;