Angular 2 - Input of type 'file', need to get the full file path

473 views
Skip to first unread message

Simon Azzopardi

unread,
Aug 10, 2016, 4:07:28 AM8/10/16
to AngularJS
Hi Guys,

I am using Angular 2.

What i am trying to do is that part of a form, there is a multiple file upload <input type="file" multiple>.
Now, onchange, I am getting files selected from user, but I want the full url of the files, so that I can pass them with the post model so that I can do the logic to save them accordingly and eventually link them as well.

So My dilemma is how I can get the file full paths using angular so that I can pass them to the backend  and work with them?

Any help will be much appreciated.

thanks
Reply all
Reply to author
Forward
0 new messages