25 lines
662 B
JavaScript
25 lines
662 B
JavaScript
/*global angular */
|
|
'use strict';
|
|
|
|
/**
|
|
* The main app module
|
|
* @name app
|
|
* @type {angular.Module}
|
|
*/
|
|
var app = angular.module('app', ['flow'])
|
|
.config(['flowFactoryProvider', function (flowFactoryProvider) {
|
|
flowFactoryProvider.defaults = {
|
|
target: 'upload.php',
|
|
permanentErrors: [404, 500, 501],
|
|
maxChunkRetries: 1,
|
|
chunkRetryInterval: 5000,
|
|
simultaneousUploads: 4,
|
|
singleFile: true
|
|
};
|
|
flowFactoryProvider.on('catchAll', function (event) {
|
|
console.log('catchAll', arguments);
|
|
});
|
|
// Can be used with different implementations of Flow.js
|
|
// flowFactoryProvider.factory = fustyFlowFactory;
|
|
}]);
|