A simple, very lightweight file sharing service in Rust. Just drop your file and send the link. Inspired by 0x0.st.
| src | Adding the automatic clean up of old files | |
| .gitignore | Creating the first working version (no clean up or fancy style now) | |
| Cargo.lock | Renaming the project from dropzone to justdrop | |
| Cargo.toml | Renaming the project from dropzone to justdrop | |
| README.md | Adding idea to prevent spam on the platform | |
Justdrop
A very simple temporary file sharing service made for easy self-hosting. Inspired by the amazing 0x0.st.
Challenges/technologies
- Web framework:
axumwithtokio - File storage: Just simple local file storage with
tokio::fs - Automatic cleaning: Same formula as for 0x0.st running regularly in a different thread that iterates over the files and apply the forumula to check if it has expired
- Configuration:
dotenvy - Styling: Just plain CSS since it's just two pages
- File serving:
tower-http - Templating:
maud - Random identifier generation:
randandbase32
Features
- File upload
- File download
- Specific message for curl users
- Automatic cleaning of the files based on file size and upload date
- Enable the use of token to only let allowed users upload things on the instance and prevent spam