Sorry, no results found for "".
The original file name
"image.png"
Returns a resource object of type upload_request
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const uploadRequest = await client.uploadRequest.create({});7 8 // Check the 'Returned output' tab for the result ☝️9 console.log(uploadRequest);10}11 12run();
1{2 id: "/7/1455102967-image.png",3 url: "https://dato-images.s3-eu-west-1.amazonaws.com/7/1455102967-image.png?X-Amz-Credential=AKIAJDTXTZHHDUCKAUMA%2F20160210",4 request_headers: {},5}