cqse/file-upload

By cqse

Updated over 7 years ago

Utility to allow uploading files to servers when file shares are not an option

Image
0

49

  • Set the environment variable PASSWORD.
  • Mount /opt/upload/data as a volume to access the uploaded files
  • Map port 5000

Upload must be via HTTP POST. Parameters:

  • file: the file to upload
  • password: the password
  • optional name: the name or subpath under which to place the file, e.g. some-inbox/file.txt. If not given, the data from the uploaded file is used

E.g. with curl:

curl -v -XPOST -Ffile=@file.txt -Fpassword=SECRET
-Fname=foo/bar.txt localhost/upload/

Docker Pull Command

docker pull cqse/file-upload