flowjs / ng-flow

Flow.js html5 file upload extension on angular.js framework
http://flowjs.github.io/ng-flow/
MIT License
1.38k stars 303 forks source link

how can i get server response #277

Open dribehance opened 8 years ago

dribehance commented 8 years ago

i property need to access to server response,which is a json that server response with the changed filename, when i listening on $scope.$on("flow::fileSuccess",function(file,message,chunk){}) the message seems to a bit different than my server response, the message below:

d {support: true, supportDirectory: true, files: Array[1], defaults: Object, opts: Object…}
defaults: Object
events: Object
files: Array[1]
onDrop: (a)
opts: Object
preventEvent: (a)
support: true
supportDirectory: true
__proto__: Object

server response:

{
    "fileName":"1464658299472.png",
    "code":200,
    "message":"upload success",
    "status":1
}

i can not figure out when and where run wrong? expecting a reply