You can upload / download files to this server with simple curl commands, through http.
Try to upload a file using the following command:
upload:
curl -v -F "file=@/path/to/file.ext" http://localhost:3000/upload
curl -v -F "file=@/path/to/some.zip;filename=fancy.zip" http://localhost:3000/upload
download:
curl -O http://localhost:3000/download/file.ext
curl -O http://localhost:3000/download/fancy.zip
list files:
curl http://localhost:3000/files
Compress files:
tar -cf compressed.tar /path/to/directory
tar -cf - /path/to/directory | pigz > compressed.tar.gz
tar -czf compressed.tar.gz /path/to/directory
Decompress files:
tar -xf compressed.tar
tar -xzf compressed.tar.gz
Build docker image
docker build -t go-file-server .
Run docker image
docker run -p 3000:3000 go-file-server
# or use existing server
docker run -p 3000:3000 rankun203/go-file-server
Visit http://localhost:3000.
Content type
Image
Digest
sha256:c8bceace0…
Size
5.2 MB
Last updated
over 3 years ago
docker pull rankun203/go-file-server