Revert "Remove file storage possibility for now (awaits #12)"

This reverts commit 801ac8adbb.
This commit is contained in:
Daan Sprenkels 2019-11-10 19:08:05 +01:00
parent 66eb0bf97a
commit c82a71f7d0
2 changed files with 7 additions and 1 deletions

View File

@ -8,10 +8,13 @@ the command line.
## USAGE ## USAGE
# Upload a file
curl -F'file=@yourfile.png' <a href="{{.Request.Host}}">{{.Request.Host}}</a>
# Shorten a URL # Shorten a URL
curl -F'shorten=http://example.com/some/long/url' <a href="//{{.Request.Host}}">https://{{.Request.Host}}</a> curl -F'shorten=http://example.com/some/long/url' <a href="//{{.Request.Host}}">https://{{.Request.Host}}</a>
# Shorten a URL with a token to delete it later # Shorten a URL with a token to delete it later
curl -F'shorten=http://example.com/some/long/url' -F'deleteToken=' <a href="//{{.Request.Host}}">https://{{.Request.Host}}</a> curl -F'shorten=http://example.com/some/long/url' -F'deleteToken=' <a href="//{{.Request.Host}}">https://{{.Request.Host}}</a>
</pre> </pre>
{{end}} {{end}}

View File

@ -6,6 +6,9 @@ the command line.
## USAGE ## USAGE
# Upload a file
curl -F'file=@yourfile.png' {{.Request.Host}}
# Shorten a URL # Shorten a URL
curl -F'shorten=http://example.com/some/long/url' https://{{.Request.Host}} curl -F'shorten=http://example.com/some/long/url' https://{{.Request.Host}}