Skip to content

Temporary file upload service (inspired by bashupload.com)

License

Notifications You must be signed in to change notification settings

Szmelc-INC/Trash-Upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trash-Upload

> Temporary file upload service (inspired by bashupload.com)

image

Quick Setup w Docker:

git clone https://github.com/GNU-Szmelc/Trash-Upload && cd Trash-Upload && bash setup.sh

Usage:

=== Client ===

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

=== Server ===

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

About

Temporary file upload service (inspired by bashupload.com)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published