updates file for angular-file-upload