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.

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

export const saveUpload = async (upload: { data: Uint8Array; name: string }) => {
  await writeFile(path.join('/tmp/uploads', `${randomUUID()}.bin`), upload.data);
};