# File drop

Drop a file on a page and get a link to share. The files stay on your phone, not in someone else’s cloud.

## Get it

```sh
$ npx dukoi init file-drop
```

It makes a `file-drop` folder and deploys it. On the phone instead: **Try a template → File drop → Deploy**.

## What you get

An upload page. Drop a file on it and you get a link like `/f/k3x9/photo.jpg` that anyone with the URL can open. Files are kept in `DATA_DIR`, so they survive deploys.

192.168.0.112:3003

Drop a file here

Up to 50 MB

photo.jpg /f/k3x9/photo.jpg

## Make it yours

Four files. The size limit is the first thing most people change.

- `server.js`: Uploads and links. MAX\_MB is near the top.
- `public/index.html`: The upload page
- `package.json`: Its name and packages
- `README.md`: How to run it, in five minutes

Raise the limit in `server.js`:

```
const MAX_MB = 200
```

> Sharing big files outside your Wi-Fi?
> 
> Cloudflare’s free plan limits uploads through a public URL to 100 MB. On your Wi-Fi there’s no such limit.

Then deploy again. Files already uploaded stay where they are.

```sh
$ npx dukoi deploy
```
