File Upload
Learn how to upload files to JigsawStack File Storage and use them across different APIs
Overview
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
- Simple integration with other JigsawStack APIs
- Automatic content-type detection
- Support for overwriting existing files
- Customizable file accessibility
API Endpoint
The File Storage API is accessed through the SDK’s store.upload
method.
Quick Start
Advanced Usage
By default, trying to upload a file with a name that already exists will return an error. To replace an existing file, use the overwrite
parameter:
While the API automatically detects the content type of uploaded files, you can explicitly set it with the content_type
parameter:
Uploaded files are private by default. To make a file accessible without authentication, append your public key to the URL:
You can use an uploaded file with other JigsawStack APIs by referencing its key
in the file_store_key
parameter: