ilhamdev commited on
Commit
b1744a9
·
verified ·
1 Parent(s): c1a4ff8

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -285,9 +285,9 @@ async function neko(buffer) {
285
  if (disallowedExtensions.includes(ext)) {
286
  throw new Error('Ekstensi file tidak diizinkan');
287
  }
288
- const blob = new Blob([buffer], { type: mime });
289
  const formData = new FormData();
290
- formData.append('file', blob, {filename: 'file' + ext});
291
  const response = await axios.post('https://cdn.nekohime.xyz/upload', formData, {
292
  headers: {
293
  'Content-Type': `multipart/form-data; boundary=${formData._boundary}`,
 
285
  if (disallowedExtensions.includes(ext)) {
286
  throw new Error('Ekstensi file tidak diizinkan');
287
  }
288
+ //const blob = new Blob([buffer], { type: mime });
289
  const formData = new FormData();
290
+ formData.append('file', buffer, {filename: 'file' + ext});
291
  const response = await axios.post('https://cdn.nekohime.xyz/upload', formData, {
292
  headers: {
293
  'Content-Type': `multipart/form-data; boundary=${formData._boundary}`,