1
0
Fork 0
mirror of https://github.com/Luzifer/share.git synced 2024-12-20 10:31:16 +00:00

Fix: Don't provide file template in content-type

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-10-19 23:42:56 +02:00
parent 9d323a1044
commit 081f2e22b7
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -21,8 +21,8 @@ var (
BasePath string `flag:"base-path" default:"" description:"DEPRECATED: Path to upload the file to"` BasePath string `flag:"base-path" default:"" description:"DEPRECATED: Path to upload the file to"`
Bootstrap bool `flag:"bootstrap" default:"false" description:"Upload frontend files into bucket"` Bootstrap bool `flag:"bootstrap" default:"false" description:"Upload frontend files into bucket"`
Bucket string `flag:"bucket" default:"" description:"S3 bucket to upload files to" validate:"nonzero"` Bucket string `flag:"bucket" default:"" description:"S3 bucket to upload files to" validate:"nonzero"`
ContentType string `flag:"content-type,c" vardefault:"file_template" description:"Force content-type to be set to this value"` ContentType string `flag:"content-type,c" default:"" description:"Force content-type to be set to this value"`
FileTemplate string `flag:"file-template" default:"" description:"Full name template of the uploaded file"` FileTemplate string `flag:"file-template" vardefault:"file_template" description:"Full name template of the uploaded file"`
Listen string `flag:"listen" default:"" description:"Enable HTTP server if set to IP/Port (e.g. ':3000')"` Listen string `flag:"listen" default:"" description:"Enable HTTP server if set to IP/Port (e.g. ':3000')"`
LogLevel string `flag:"log-level" default:"info" description:"Log level (debug, info, warn, error, fatal)"` LogLevel string `flag:"log-level" default:"info" description:"Log level (debug, info, warn, error, fatal)"`
Progress bool `flag:"progress" default:"false" description:"Show progress bar while uploading"` Progress bool `flag:"progress" default:"false" description:"Show progress bar while uploading"`