Hi All,
Could somebody help me? I would like to upload image on custom hosting, but I don't understand how configure ShareX in my case. This is example of POST request:
-----------------------------23475557526581
Content-Disposition: form-data; name="source"; filename="filename.png"
Content-Type: image/png
<HERE IS DATA BLOCK>
-----------------------------23475557526581
Content-Disposition: form-data; name="source"
null
-----------------------------23475557526581
Content-Disposition: form-data; name="type"
file
-----------------------------23475557526581
Content-Disposition: form-data; name="timestamp"
1479548793359
-----------------------------23475557526581
Content-Disposition: form-data; name="auth_token"
2bfe118e98c62f3e399c21621b27f2f3af73dfbc
-----------------------------23475557526581
Content-Disposition: form-data; name="category_id"
null
-----------------------------23475557526581
Content-Disposition: form-data; name="nsfw"
0
-----------------------------23475557526581--
What should I do? Please help :(
auth_token and timestamp can be problem if it is dynamic.
{
"Name": "testuser013",
"RequestType": "POST",
"RequestURL": "",
"FileFormName": "source",
"Arguments": {
"source": "null",
"type": "file",
"timestamp": "%unix",
"auth_token": "2bfe118e98c62f3e399c21621b27f2f3af73dfbc",
"category_id": "null",
"nsfw": "0"
},
"ResponseType": "Text"
}
That gets you as far as uploading, you'll then need to parse the response
Thanks, but unfortunately I'm getting responce {"status_code":400,"error":{"message":"Request denied","code":400,"context":"Exception"}}
There are cookies with names PHPSESSID and __utma. I have added them, but got the same response :(
looks like they rely on a dynamic auth token
this means a custom uploader cannot be used if this is the case, and a dedicated uploader would be required to be created/integrated
Thanks :(