Upload images, videos and documents effortlessly.
import { JigsawStack } from "jigsawstack"; const jigsaw = JigsawStack({ apiKey: "your-api-key" }); const file = await fetch("https://jigsawstack.com/preview/vocr-example.jpg"); const blob = await file.blob(); const response = await jigsaw.store.upload(blob, { key: "new-image.jpg", overwrite: true, });
{ "key": "new-image.jpg", "url": "https://api.jigsawstack.com/v1/store/file/read/new-image.jpg", "size": 75078 }
image-key.png
Was this page helpful?