Consuming Plupload Data URIs In An AngularJS Application

added by JavaScript Kicks
2/24/2015 4:48:04 PM


I've been using Plupload as my HTML5 uploader in AngularJS for a long time. I've even looked at the mechanics of extracting a Base64-encoded image preview from a Plupload file; but, I've never really noodled on how to best consume those data URIs in the context of a real AngularJS application. This blog post is my first attempt at turning data URIs into a cacheable resource that I can use throughout my application as I navigate to different views.