File upload with nervgh

30 views
Skip to first unread message

mark goldin

unread,
Dec 12, 2015, 4:47:13 AM12/12/15
to AngularJS

I am trying nervgh for my file uploads. My problem is that the upload is not getting intercepted. Are there any Angular compatible file upload products that can be intercepted?


Thanks

Sander Elias

unread,
Dec 14, 2015, 12:59:31 AM12/14/15
to AngularJS
Ho Mark,

Never heard of that one ;)
I looked over the source, and it's not using $http for upload, so interceptors can't work with this. For file-uploading $http is not providing everything you need, so the answer is probably no. 

Regards
Sander

mark goldin

unread,
Dec 14, 2015, 8:09:41 AM12/14/15
to AngularJS
So, are they using then?

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/36x3ZAzrWPE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Sander Elias

unread,
Dec 14, 2015, 8:27:22 AM12/14/15
to AngularJS
Hi Mark,

Just the basic XMLHttpRequest directly. It gives you the controll you need for this kind of stuff.

Regards
Sander

mark goldin

unread,
Dec 14, 2015, 8:31:10 AM12/14/15
to AngularJS
Isn't that what all Ajax calls are?

--

Sander Elias

unread,
Dec 14, 2015, 9:13:14 AM12/14/15
to AngularJS
Hi Mark,

No actually it is not. There are more ways beside XMLHttpRequest to communicate with server/peers. It is the most used/known one. 
Why are you asking? 

Regards
Sander

mark goldin

unread,
Dec 14, 2015, 9:20:45 AM12/14/15
to AngularJS
Because when I check Console I see that all my data calls are XHR calls, so is an upload call.

--

Sander Elias

unread,
Dec 14, 2015, 9:41:38 AM12/14/15
to AngularJS
Ah, I see. As I said. the most used/know way to do ajax. :)
Reply all
Reply to author
Forward
0 new messages