The JigsawStack File Storage API allows you to easily upload, manage, and serve files for your applications. Files are stored securely and can be accessed via URL, making it an ideal solution for image uploads, document storage, or any file-handling needs in your applications.
Note: The file upload method is ideal for files up to 100MB in size.
Secure file storage with fine-grained access control
You can use an uploaded file with other JigsawStack APIs by referencing its key in the file_store_key parameter:
Using Uploaded Files with Other JigsawStack APIs
Copy
// JavaScript example: Upload an image and use it with Vision OCRconst uploadResult = await jigsaw.store.upload(imageFile, { filename: "receipt.jpg"});// Use the uploaded image with the Vision OCR APIconst ocrResult = await jigsaw.vision.vocr({ prompt: "Extract all text from this receipt", file_store_key: uploadResult.key});