Add some example uploaders

This commit is contained in:
ArsenArsen 2017-07-20 17:14:28 +02:00
parent 9ef6aa562a
commit 906986feed
2 changed files with 26 additions and 0 deletions

11
pictshare.uploader Normal file
View File

@ -0,0 +1,11 @@
{
"name": "PictShare",
"desc" : "Example",
"target": ".../backend.php",
"base64": true,
"format": "x-www-form-urlencoded",
"body": {
"base64": "/data:%contenttype;base64,%imagedata/"
},
"return": ".url"
}

15
pomf.uploader Normal file
View File

@ -0,0 +1,15 @@
{
"name": "Uploader name",
"target": "POMF endpoint",
"format": "multipart-form-data",
"body": [
{
"__Content-Type": "/%contenttype/",
"filename": "/image.%format/",
"name": "files[]",
"body": "/%imagedata/"
}
],
"return": ".files.0.url",
"return_prepend": "Add only if the host does not fill out url"
}