Update index.js
Browse files284 unmodified lines285286287288288289290290291292293284 unmodified lines if (disallowedExtensions.includes(ext)) { throw new Error('Ekstensi file tidak diizinkan'); } const blob = new Blob([buffer], { type: mime }); //const blob = new Blob([buffer], { type: mime }); const formData = new FormData(); formData.append('file', blob, {filename: 'file' + ext}); formData.append('file', buffer, {filename: 'file' + ext}); const response = await axios.post('https://cdn.nekohime.xyz/upload', formData, { headers: { 'Content-Type': `multipart/form-data; boundary=${formData._boundary}`,index.js+2-2