git clone https://github.com/GNU-Szmelc/Trash-Upload && cd Trash-Upload && bash setup.sh
Upload file (single use only)
curl -F file=@/path/to/your/file http://server-ip/
Upload file (Unlimited downloads, expires after 24h) [Add ?d24=true at the end of URL]
curl -F file=@/path/to/your/file http://server-ip/?d24=true
Example:
curl -F [email protected] szmelc.com
Manage running service (server side):
# check Container ID with
docker ps
# run
docker exec -it <Container ID> /bin/bash
# cd & ls
cd /usr/src/app/uploads
ls -lh
# Manage image / container:
# List currently running containers
docker ps
# Which will output:
# <CONTAINER ID> <IMAGE> <COMMAND> <CREATED> <STATUS> <PORTS> <NAMES>
# Stop container
docker stop <CONTAINER ID>
# Start container
docker start <CONTAINER ID>
# Forcefully remove image
docker rmi -f trash-upload