var app = angular.module("myApp",['ui.router','flow']);
app.config(['flowFactoryProvider', function (flowFactoryProvider) {
flowFactoryProvider.defaults = {
target: 'upload.php?type=1',
testChunks:false,
singleFile: true,
permanentErrors: [404, 500, 501],
maxChunkRetries: 1,
chunkRetryInterval: 5000,
simultaneousUploads: 4
};
}]);
Above code is working perfectly...
I just want to change target dynamically from $scope variable
i think it should be something like
var app = angular.module("myApp",['ui.router','flow']);
app.config(['flowFactoryProvider', function (flowFactoryProvider) {
flowFactoryProvider.defaults = {
target: 'upload.php?type=' + $scope.vtype,
testChunks:false,
singleFile: true,
permanentErrors: [404, 500, 501],
maxChunkRetries: 1,
chunkRetryInterval: 5000,
simultaneousUploads: 4
};
}]);
Thanks for any help.