Blob to File
/**
* Blob to File
* @param { Blob } Blob
*/
const blobToFile = (blob = new Blob(), name = "") => {
blob.lastModifiedDate = new Date();
blob.name = name;
return new File([blob], name, { type: blob.type, lastModified: Date.now() });
};
本文链接:
/archives/blob-to-file
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
CaptainTwo!
喜欢就支持一下吧