Add some example uploaders
This commit is contained in:
parent
9ef6aa562a
commit
906986feed
11
pictshare.uploader
Normal file
11
pictshare.uploader
Normal 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
15
pomf.uploader
Normal 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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user