Maximum file size is 100MB.
File content type e.g image/png, image/jpeg, video/mov, video/mp4
Body
Query
The key to store the file. We recommend you include the file extension in the
key. E.g image-key.png. If not provided, the file will be stored with a random key.
Overwrite the file if key already exists.
Provides a temporary public URL valid for 10 minutes, if set to true.
See complete guide on File Storage here
Response
Key used in storing the file.
Url used in accessing the file.
Size of the uploaded file in bytes.
Temporary public URL valid for 7 days. Only present if temp_public_url is set to true.
Javascript
Python
Curl
PHP
Ruby
Go
Java
Swift
Dart
Kotlin
C#
import { JigsawStack } from "jigsawstack" ;
const jigsaw = JigsawStack ({
apiKey: "your-api-key" ,
});
const imageFetch = await fetch ( "https://jigsawstack.com/preview/object-detection-example-input.jpg" );
const blob = await imageFetch . blob ();
const response = await jigsaw . store . upload ( blob , {
key: "test-key" ,
overwrite: true ,
});
{
"key" : "test-key" ,
"url" : "https://api.jigsawstack.com/v1/store/file/read/1234" ,
"size" : 1024 ,
}