Angular directive for upload document via ajax