Skip to content

generateUniqueIdentifier invked two times #99

@mcianc

Description

@mcianc

Using custom generateUniqueIdentifier my function is invoked two times for each added files

            $scope.MyFlow = new Flow({
                target: api + "/Api/FileCommit",
                //testMethod : "POST",
                testChunks: false,
                uploadMethod: "POST",
                generateUniqueIdentifier: function (file) {

                    var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
                        var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
                        return v.toString(16);
                    });

                    console.log(file.size + "." + uuid)
                    return file.size + "." + uuid;

                }

            });

This is not a really issue but, should be fixed is some release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions