Discover Packages
github.com/irwiss/go-upload
command
module
Version:
v0.0.0-...-99ff172
Opens a new window with list of versions in this module.
Published: Jul 23, 2021
License: MIT
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
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.
Opens a new window with list of known importers.
README
README
¶
go-upload
Simple go app for file uploads.
This has a rudimentary web UI if needed and turned on with ENABLE_WEBFORM environment variable
and it can serve the files from uploaded directory.
However, I mostly use it from ShareX with a custom uploader,
and use nginx to proxy the public url into storage path
Docker images
https://hub.docker.com/r/irwiss/go-upload/tags
Environment variables
Variable
Example Value
Description
LISTEN_ADDRESS
0.0.0.0:9000
Endpoint to bind the http server, example value will bind to any ipv4 address at port 9000
MAX_UPLOAD_SIZE_IN_MB
100
Value of 100 means files larger than 100MB will be rejected
STORAGE_PATH
./
Value of ./ will put the files wherever working directory is set to
FILENAME_LENGTH
8
Value of 8 will pick 8 random alphanumeric characters as filename + the file's extension as the result filename
ENABLE_WEBFORM
true
Value of true will let you see a simple web UI for uploadnig
PUBLIC_ROOT
http://example.com/uploads/
The url where your STORAGE_PATH is visible from public internet, with trailing slash
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.