根据选择相册返回的filePath
已经得到路劲:let correctPath = filePath.substr(0, filePath.lastIndexOf('/') + 1);
文件名:let currentName = imagePath.substring(imagePath.lastIndexOf('/') + 1, imagePath.lastIndexOf('?'));
接下来 不管我是把这个通过 file.readAsBinaryString(path, file)转二进制 或 file.readAsDataURL(path, file) 转base64
作为参数上传腾讯云(COS),能得到文件,但文件都打不开
腾讯云API要求参数为string,file,blob
想问,我该怎么转成相应的string 或 file对象 或Blob对象 进行上传?