import { localStoragePut } from "./server/localStorage.ts"; const testBuffer = Buffer.from("Test PDF content"); const result = await localStoragePut("test/test-file.pdf", testBuffer, "application/pdf"); console.log("Storage test result:", result); // Check if file exists import fs from "fs/promises"; import path from "path"; const fullPath = path.join(process.cwd(), "storage", "test/test-file.pdf"); try { await fs.access(fullPath); console.log("✓ File exists at:", fullPath); } catch { console.log("✗ File does NOT exist at:", fullPath); }