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