# fileup-node

> File upload helper for Nodejs/Express

Latest version **0.2.0** (published 2013-09-01) · 0 weekly downloads

## Install

```sh
npm install fileup-node
pnpm add fileup-node
yarn add fileup-node
bun add fileup-node
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2013-09-01 |
| First published | 2012-12-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | C Borkert |
| Maintainers | dpweb |
| Keywords | util, nodejs |

## Links

- npm: https://www.npmjs.com/package/fileup-node
- Repository: https://github.com/dpweb/fileup-node
- npm.io page: https://npm.io/package/fileup-node

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2013-09-01
- 0.1.4 — 2013-07-10
- 0.1.3 — 2013-07-10
- 0.1.2 — 2013-07-10
- 0.1.1 — 2013-07-10
- 0.0.1 — 2012-12-10

## README

###fileup-node    
File upload helper for nodejs/express

Install
````
$ npm install fileup-node
````

#####POST your file to /doupl    
    
###Upload using HTML
````
<form method="post" enctype="multipart/form-data" action="/doupl">
    <input type="file" name="myfile">
    <input type="submit">
</form>
````

### Upload using curl
````
$ curl -F myfile=@<filename> localhost/doupl
````

This can be used for other web servers, that support app.post(req, res)

### Example app (Express)
````
var express = require('express'), app = express();
app.use(express.bodyParser());

require('./fileup-node.js')('./testdir', app, function(r, s){
	// after file has been uploaded and saved
	s.end(r.files.myfile.name + ' has been uploaded');
})

app.get('/', function(r, s){
	s.setHeader('Content-Type', 'text/html');
	s.end('\
		<form method="post" enctype="multipart/form-data" action="/doupl">\
    		<input type="file" name="myfile">\
    		<input type="submit">\
		</form>');
})

app.listen(80);
````

---
_Source: https://npm.io/package/fileup-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
