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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址