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
$ 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.
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
Then deploy again. Files already uploaded stay where they are.
$ npx dukoi deploy