Limit the number of uploads The number of uploaded files can be limited through the max-count attribute. After the number of uploads reaches the limit, the upload area will be automatically hidden.
Limit upload size The size of the uploaded file can be limited through the max-size attribute. Files exceeding the size will be automatically filtered, and the file information can be obtained through the oversize event.
Verify and process the file before uploading Through the before-read function, you can perform verification and processing before uploading, and support returning Promise to customize the file object. For example, compress pictures: use compressorjs to compress pictures, optimize functions, and compress pictures in all formats.
After the file is uploaded, the data will be obtained. After the file is uploaded, the after-read callback function will be triggered to obtain the corresponding file object.