Change API filename upload using custom header
authorRomain Porte <microjoe@microjoe.org>
Sat, 11 Nov 2017 17:29:54 +0000 (18:29 +0100)
committerBoris Bobrov <breton@cynicmansion.ru>
Sat, 11 Nov 2017 17:41:01 +0000 (20:41 +0300)
commitf2b4760bd50d4ad6ec5899e90f655c2f4cf0884a
tree231b19281d643c43b33d317c65ba5b96fb0b1302
parenta63d628f594f115b3fbe61590ccc2a8962a36d8a
Change API filename upload using custom header

When uploading a file using the API its same is always going to be
'unknown.<extension>', which is not good looking for file urls. This
patch proposes a custom header named 'X-File-Name' that allows to
specify a file name using an API client.

This changeset was tested with a local OAuth1 client.
mediagoblin/api/views.py