Upload an Image
Use aFile, Blob, or file buffer and keep the original image extension in fileName. Public image uploads return a publicUrl that you can use directly in an <img> tag, Open Graph image, avatar, or product gallery.
Common Operations
Return Values
The Node SDK unwraps the CDN API response envelopes so the common values are easier to use:
Asset objects include
id, userId, optional projectId, optional deploymentId, storageName, key, fileName, contentType, size, publicUrl, sha256, etag, visibility, kind, metadata, createdAt, and updatedAt.
