A file upload directive for angular