Bug overview description.
When I'm trying to upload an image via API I get error 500
What part(s) of the site page(s) are affected?
API, post/create
What is the expected behavior?
Successful upload or some kind of meaningful error
What actual behavior is given instead?
Image is not uploaded and no meaningful error in response
Time of incident (if applicable).
Should be a bunch of requests made today
Can you reproduce the bug every time?
Yes
What steps did you take to replicate this bug?
What I send (response from httpbin)
{ "args": {}, "data": "", "files": {}, "form": { "login": "Jazz", "password_hash": "butt", "post[file]": "http://d.facdn.net/art/phlegraofmystery/1463623236/1463623236.phlegraofmystery_bunnycaptainfuraffinity.png", "post[rating]": "s", "post[tags]": "PhlegraOfMystery bunny solo female clothed ranged_weapon" }, "headers": { "Accept": "*/*", "Content-Length": "712", "Content-Type": "multipart/form-data; boundary=------------------------bcc3708b5d6a55a2", "Host": "www.httpbin.org", "User-Agent": "curl/7.49.0" }, "json": null, "origin": "butt", "url": "http://www.httpbin.org/post" }
If I send incorrect API key I get "access denied" error so request doesn't seem to be malformed
Errors or other messages returned (if any).
Error 500 with fields
success: false reason: Unexpected error (8ccefff4ee8229d8f51d4e52625cf43c)
Text inside parenthesis varies from image to image, if I try to upload not from URL but from disk, there's no text inside parenthesis
Updated by KiraNoot