PUT: Add initial support #63

Open
Ghost wants to merge 3 commits from (deleted):feat/put/add-support into master
Showing only changes of commit 1abe43f4c0 - Show all commits

View file

@ -9,6 +9,9 @@ You can also POST remote URLs:
Or you can shorten URLs: Or you can shorten URLs:
curl -F'shorten=http://example.com/some/long/url' {{ fhost_url }} curl -F'shorten=http://example.com/some/long/url' {{ fhost_url }}
Alternatively, you can use PUT:
curl -X PUT -T 'yourfile.png' {{ fhost_url }}
File URLs are valid for at least 30 days and up to a year (see below). File URLs are valid for at least 30 days and up to a year (see below).
Shortened URLs do not expire. Shortened URLs do not expire.
{% set max_size = config["MAX_CONTENT_LENGTH"]|filesizeformat(True) %} {% set max_size = config["MAX_CONTENT_LENGTH"]|filesizeformat(True) %}