{{define "content"}} {{if .Stale}}

Your login is no longer valid. You have been logged out; log in again to carry on.

{{end}}
{{- /* Field order is load-bearing: the server streams this body rather than spooling it, so every option and the token have to arrive before the file part does. The drop zone is lifted back to the top of the card with CSS order, which changes what is seen without changing what is sent. */}}
Use a different token for this upload

Applies to this upload only and does not log you in. {{if not .User}}To keep a token for this browser, log in instead.{{end}}

Choose a file, or drop one here.

Your limits

Uploading as
{{if .User}}{{.User}}{{else}}anonymous{{end}}
Maximum size
{{.MaxSize}}
Longest lifetime
{{.MaxExpiry}}
Default lifetime
{{.DefaultExpiry}}
Vanity names
{{if .AllowVanity}}allowed{{else}}need a token{{end}}
{{if not .User}}

Log in with a token to raise these.

{{end}}

From the command line

curl --data-binary @file.zip \
     -H 'Content-Disposition: attachment; filename="file.zip"' \
     -H 'Authorization: Bearer <token>' \
     -H 'Vanity: my-file' \
     -H 'Expiry: 3d' \
     {{.AbsBase}}upload
{{end}}