How to use the plupload.each function in plupload

To help you get started, we’ve selected a few plupload examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chenkanqin / evue / src / packages / form / packages / upload / upMixins.js View on Github external
FilesAdded: (up, files) => {
            //新增图片
            if (option.upMaxLength && files.length > option.upMaxLength) {
              plupload.each(files, (file) => {
                this.evueUploader.removeFile(file);
              });
              this.evueUploader.refresh();
              console.error('只能上传数量为:' + option.upMaxLength);

              this.$emit('upload-filesAdded', {
                code: -1,
                // allFiles: this.allFiles,
                msg: '只能上传数量为:' + option.upMaxLength,
                // uploader: this.evueUploader,
              });
              return;
            }
            this.allFiles = [];
            this.upIndex = 0;
            let num = 0;

plupload

Plupload is a JavaScript API for dealing with file uploads it supports features like multiple file selection, file type filtering, request chunking, client side image scaling and it uses different runtimes to achieve this such as HTML 5, Silverlight and F

AGPL-3.0
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis