Francesco149 / sharenix

A ShareX clone for Linux and FreeBSD.
GNU General Public License v3.0
588 stars 35 forks source link

Unrecognized ResponseType #10

Closed Azorant closed 7 years ago

Azorant commented 7 years ago

Alright i have been trying to get the response type to work for sometime now but it keeps say the same think 'Unrecognized ResponseType'. This is what my config is: { "Name": "Upload", "RequestType": "POST", "Headers": { "Token": "my token" }, "RequestURL": "my url", "FileFormName": "file", "ResponseType": "JSON", "URL": "$json:data.url$", "DeletionURL": "" }, And this is what my server sends back: res.type('json') var data = JSON.stringify({"status": 200,"data": {"url": "myurl"+name}}); res.send(data)

Azorant commented 7 years ago

Changed it to Text and it worked :man_shrugging: so yea

Francesco149 commented 7 years ago

yes, response type is always Text. I think shareX is like that as well

Francesco149 commented 7 years ago

(except for redirects)