I am new to angularjs and nodejs.
I want to implement file (.pdf, .jpg, .doc) upload functionality using rest api, angularjs and expressjs.
I have tried to get idea from Use NodeJS to upload file in an API call but still i am not clear about how i can upload file using angularjs and expressjs in REST API.
Can anyone explain me file upload in angularjs and expressjs using REST API with basic example?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
|||||
|
I've been dealing with a similar problem recently. Thing is, angular doesn't have the best support for input type "file", because you cannot bind it 2 way. That is why people made custom directives for that. The one I used has some neat examples. Its called angular-file-upload |
|||||
|
Reference : https://github.com/danialfarid/angular-file-upload
AngularjsHTML
JS
Nodejs using expressJS
|
|||
|