|
|
@ -31,7 +31,8 @@ class Fileslistitem extends Component{
|
|
|
|
downloadfiles=(url,name)=>{
|
|
|
|
downloadfiles=(url,name)=>{
|
|
|
|
const aLink = document.createElement('a');
|
|
|
|
const aLink = document.createElement('a');
|
|
|
|
aLink.style.display='none';
|
|
|
|
aLink.style.display='none';
|
|
|
|
aLink.download =name;
|
|
|
|
console.log(name)
|
|
|
|
|
|
|
|
aLink.setAttribute('download',name)
|
|
|
|
aLink.href = url;
|
|
|
|
aLink.href = url;
|
|
|
|
document.body.appendChild(aLink);
|
|
|
|
document.body.appendChild(aLink);
|
|
|
|
aLink.click();
|
|
|
|
aLink.click();
|
|
|
|