API upload via url inconsistent results

Something is still up with that url. Chrome is just being fancy and loading it right away for you (handling the headers or something).

Once you are able to get it to work with curl -O <url> it should work in Discourse.