File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ file is instance of [FlowFile](https://github.com/flowjs/flow.js#flowfile).
7272### Quick setup
7373```` html
7474<div flow-init =" {target: '/upload'}"
75- flow-files-submitted =" $flow.upload()" >
75+ flow-files-submitted =" $flow.upload()"
76+ flow-file-success =" $file.msg = $message" >
7677
7778 <input type =" file" flow-btn />
7879 Input OR Other element as upload button
@@ -82,12 +83,12 @@ file is instance of [FlowFile](https://github.com/flowjs/flow.js#flowfile).
8283 <tr ng-repeat =" file in $flow.files" >
8384 <td >{{$index+1}}</td >
8485 <td >{{file.name}}</td >
86+ <td >{{file.msg}}</td >
8587 </tr >
8688 </table >
8789</div >
8890```
8991
90-
9192Need more examples?
9293============
9394Clone this repository and go to "ng-flow/samples/basic/index.html".
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ <h1>flow image example</h1>
2929 < img flow-img ="$flow.files[0] " />
3030 </ div >
3131 < div >
32- < a href ="# " class ="btn " ng-hide ="$flow.files.length " flow-btn > Select image</ a >
33- < a href ="# " class ="btn " ng-show ="$flow.files.length " flow-btn > Change</ a >
32+ < a href ="# " class ="btn " ng-hide ="$flow.files.length " flow-btn flow-attrs =" {accept:'image/*'} " > Select image</ a >
33+ < a href ="# " class ="btn " ng-show ="$flow.files.length " flow-btn flow-attrs =" {accept:'image/*'} " > Change</ a >
3434 < a href ="# " class ="btn btn-danger " ng-show ="$flow.files.length "
3535 ng-click ="$flow.cancel() ">
3636 Remove
You can’t perform that action at this time.
0 commit comments