How to upload any files based on their uploaded type using angular js

Is there any directives or js files to upload any format file like .ppt,.mp4,,txt,.doc .... means any kind. And also how to download those files using the angular js. Even i got some directive but no use.So,I am questioning here as, i spend a whole day to get it but in vain. Any demo will great help. So possible, help me. Thank U