Search code examples
angularjsflow-jsng-flow

Disable chunked transfer flowjs


I am using ng-flow directive for uploading files to server. Is there a way i can use normal upload instead of chunked upload that is used in ng-flow module?


Solution

  • Yes, you can set property testChunks: false to config flow, for example:

        var app = angular.module('app', ['flow']).
        config(['flowFactoryProvider', function (flowFactoryProvider) {
            flowFactoryProvider.defaults = {
                target: '/upload',
                permanentErrors: [404, 500, 501],
                maxChunkRetries: 1,
                chunkRetryInterval: 5000,
                simultaneousUploads: 4,
                testChunks: true
            };
        }]);