const downloadFile = (file, url) => {
let fileName = parseTime(new Date());
let fileType = getFileType(file);
let a = document.createElement('a');
a.href = url + '?response-content-type=application/octet-stream';
a.download = `${fileName}${fileType}`;
console.log('a.href', url);
console.log('a.download', a.download);
a.click();
};