This commit is contained in:
Albert S. 2021-03-21 21:23:09 +01:00
szülő 9f40c9640c
commit dcec5f0b04
1 fájl változott, egészen pontosan 27 új sor hozzáadva és 0 régi sor törölve

27
README.md Normal file
Fájl megtekintése

@ -0,0 +1,27 @@
# uploader
This quickly hacked upload solution is my quite simple (of course), convenient CLI uploader, that also encrypts files. Send the link and the browser will decrypt it. Alternatively, you can also choose not to encrypt.
A cronjob will get rid of old files. `
## Setup
To be written™.
## Usage
```
upload file 3days
```
File will be encrypted before upload, and then an expiration entry created. Then you'll get the link.
The file will expire after 3 days. Then the cronjob will remove it.
```
upload file 10weeks plain
```
Same as above, but will expire after 10weeks and no encryption will happen.
## Credits
Thanks to [lawl](https://github.com/lawl) for his work on [dumpaste](https://github.com/lawl/dumpaste), which I have stolen and modified here (with permission). His approach has a convenient upload form, a pastebin textbox and curl based CLI upload too. Expiration and uploads are handled by a go binary.