The script uses Backbone Modal to display spinners and alerts
You must update apiURL
to reflect your internal upload api.
If you wish to use the useImgur
option, make sure to set imgurClientID
(get it here http://api.imgur.com/)
var attachment = new Attachment({el: yourElement})
attachment.on('upload:success', function(resp, file, xhttp){