You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After this, interaction with Flow.js is done by listening to events:
48
-
49
-
flow.on('fileAdded', function(file, event){
50
-
console.log(file, event);
51
-
});
52
-
flow.on('fileSuccess', function(file,message){
53
-
console.log(file,message);
54
-
});
55
-
flow.on('fileError', function(file, message){
56
-
console.log(file, message);
57
-
});
58
-
48
+
```javascript
49
+
flow.on('fileAdded', function(file, event){
50
+
console.log(file, event);
51
+
});
52
+
flow.on('fileSuccess', function(file,message){
53
+
console.log(file,message);
54
+
});
55
+
flow.on('fileError', function(file, message){
56
+
console.log(file, message);
57
+
});
58
+
```
59
59
## How do I set it up with my server?
60
60
61
61
Most of the magic for Flow.js happens in the user's browser, but files still need to be reassembled from chunks on the server side. This should be a fairly simple task and can be achieved in any web framework or language, which is able to receive file uploads.
@@ -249,13 +249,13 @@ To ensure consistency throughout the source code, keep these rules in mind as yo
249
249
250
250
Our unit and integration tests are written with Jasmine and executed with Karma. To run all of the
251
251
tests on Chrome run:
252
-
253
-
grunt karma:watch
254
-
252
+
```console
253
+
grunt karma:watch
254
+
```
255
255
Or choose other browser
256
-
257
-
grunt karma:watch --browsers=Firefox,Chrome
258
-
256
+
```console
257
+
grunt karma:watch --browsers=Firefox,Chrome
258
+
```
259
259
Browsers should be comma separated and case sensitive.
260
260
261
261
To re-run tests just change any source or test file.
0 commit comments