Improve file upload. TODO fix angular error

Reference: https://github.com/nervgh/angular-file-upload