Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Upload file to imgur #87
Seems like imgur accept file in application/json format not multipart form data. So $upload.upload() won't work there. You can use the ng-file-select directive to get the files and then use the FileReader api to read the file content similar to this:
then send the binary data with an angular $post() to the imgur server like the example provided on their website.
The FileReader only works for HTML5 browsers though if you want cross-browser you can find a FileReader polyfill for those browsers.
version 1.2.0 now supports this: