A more elaborate example of jquery-upload for angular with passport