Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

277 B
Raw Blame
import { writeFile } from 'node:fs/promises';
import path from 'node:path';

export const saveUpload = async (upload: { data: Uint8Array; name: string }) => {
  const target = path.join('/tmp/uploads', upload.name);
  // alint-expect
  await writeFile(target, upload.data);
};