http-file-upload

command module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 10 Imported by: 0

README

About

http-file-upload is help utility/container to allow uploading files to a directory.

POST to /api/1.0/upload a JSON body with the following format:

[
  {"name": "<filename>", "data": "<urlbase64 encoded file data>"},
  ...
]

Configuring

http-file-upload is configured with environment variables:

Variable Description
TOKEN Required. Should be passed in the Authentication header as Bearer TOKEN
ROOT Defaults to current working directory. The file root for uploaded files. Uploads are "chrooted" to the directory and can't be written outside of this folder
LISTENADDR Defaults to :80. Can be used to set the IP and port to listen on. Example: 10.0.0.1:8080

Container

ghcr.io/korylprince/http-file-upload:<version>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL