Sharex: Question - Custom uploader

Created on 3 Jan 2017  路  5Comments  路  Source: ShareX/ShareX

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 :(

Question

All 5 comments

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 :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wilandlane picture wilandlane  路  3Comments

BristolITDave picture BristolITDave  路  3Comments

Hakaan256 picture Hakaan256  路  4Comments

Stele77 picture Stele77  路  3Comments

Atmaks picture Atmaks  路  3Comments