Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
export const downloadBinary = (binary: Blob, fileName: string) => {
const url = window?.URL.createObjectURL(binary);
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', fileName);
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
window?.URL.revokeObjectURL(url);
}
export const downloadFile = (fileUrl: string, filename: string) => {
const link = document.createElement("a");
link.href = fileUrl;
link.download = filename;
link.target = "_blank";
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
};