Safari does not support the download attribute how to download a file

how can I download a file if the download attribute is not supported by safari?

Mar.31,2021

I used to do development on Wechat official account, but I encountered the problem of downloading files. I don't know if it's the same problem as yours.
downloads written in java, set contenttype to application/x-msdownload, computers, Android downloads are fine.
it's not good to use Apple's browser. Later, Baidu changed it to contenttype and changed it to application/octet-stream.
later changed the program to set different contenttype for different browsers.

String contentType = "application/x-msdownload";
response.setContentType(contentType);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e59c1e-45575.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e59c1e-45575.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?