// 切片大小
const CHUNK_SIZE = 10 * 1024 * 1024;
// 请求并发数
const MAX_REQUEST_NUM = 6;
// 请求失败重试次数
const MAX_RETRY_NUM = 3;

// 文件类型
let fileType = {}
fileType.imageType = ['.jpg', '.jpeg', '.png', '.gif', '.svg', '.webp', '.tif', '.tiff', '.ico', '.jfif']

fileType.excelType = ['.xls', '.xlsx']
fileType.wordType = ['.doc', '.docx']
fileType.pptType = ['.pptx', '.ppt']
fileType.pdfType = ['.pdf']
fileType.textType = ['.txt']

fileType.compressType = ['.jar', '.zip', '.rar', '.7z']

fileType.videoType = ['.wmv', '.asf', '.asx', '.rm', '.rmvb', '.mpg', '.mpeg', '.mpe', '.3gp', '.mov', '.mp4', '.m4v', '.avi', '.dat', '.mkv', '.flv', '.vob']

fileType.audioType = ['.mp3']

export {
    CHUNK_SIZE,
    MAX_REQUEST_NUM,
    MAX_RETRY_NUM,
    fileType
};