Skip to main content

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

Quick Start

JavaScript

Response Example

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:
Overwriting Existing Files
While the API automatically detects the content type of uploaded files, you can explicitly set it with the content_type parameter:
Specifying Content Type
Uploaded files are private by default. To make a file accessible without authentication, append your public key to the URL:
Making Files Publicly Accessible
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
Find more information on File Upload API here