
            });

            uploader.on("uploadAccept", function (object, ret) {
                if (ret.code == 0) {
                    fileErrorMsg[object.file.id] = ret.msg;
                    return false;
                }

                return true;

            });

            uploader.on('uploadError', function (file, reason) {
                if (reason == 'server') {
                    $('#' + file.id).find('p.error').text(fileErrorMsg[file.id]);
                }

            });

       