Merge branch 'main' of github.com:monochrome-music/monochrome

This commit is contained in:
Samidy 2026-03-29 13:09:36 +03:00
commit 1a63b898cc

View file

@ -39,7 +39,8 @@ const api = new MusicAPI(apiSettings);
async function uploadImage(file) {
try {
const response = await fetch(`https://worker.uploads.monochrome.qzz.io/${file.name}`, {
const fileNameWithoutSpace = file.name.replace(/\s/g, '_');
const response = await fetch(`https://worker.uploads.monochrome.qzz.io/${fileNameWithoutSpace}`, {
method: 'PUT',
headers: {
'x-api-key': 'if_youre_reading_this_fuck_off',