Media Upload

Media Upload Flow

Media upload for NFT metadata is done via SAS linked URL. You will use one call to generate a storage space in our encrypted vault for a particular piece of media, and another call to upload said media to a returned URL.

POST /v1/folders/{folderId}/upload-url?fileExtension={fileType} //fileType = .png, .jpg, etc

//Sample Response:

{
"uploadUrl": "https: //stpubptdeus01.blob.core.windows.net/nft-files/7933d707-3f04-403d-9f05-ccfbde6cf5d3..png?skoid-8ea03ac5-b2a3-4981-8378-3d1682e77d798sktid=baa81743-7a88-4332-6433-80d8618352e78skt=2021-12-30T14%3A03%3A467&ske=2021-12-31T14%3A03%3A46Z&sks=b&skv=2020-10-0285v=2020-08-048st=2021-12-3014¥3A033A4778s€=2021-12-30T1443A1343A477&sr=b&so=w&sia=07WKJIONaFVHSZAn(1(nEaOSt2Y2L3",
"blobFileld": "7933d707-3f04-403d-9f05-ccfbde6cf5d3"
 }

📘

blobFileId

Make sure you capture the blobFileId as it will be used to link which media belongs to which NFT's metadata when drafting/editing an NFT.

Take the uploadUrl that's given to you and follow up with a PUT call to that link to add your media. Add an additional header to your PUT call with the key x-ms-blob-type and value of BlockBlob.

13881388

🚧

Auth

No authorization is needed for the followup call to upload the image.

Supported Media and File Types

Max file size limitations:

  • For all primary files, 100MB
  • For all private data, 25MB

Image

Extension

Resolution

PNG

JPEG (or JPG)

GIF

SVG

TIFF

PDF

PNG (Chrome | Safari)

JPEG (or JPG) (Chrome | Safari)

GIF (Chrome | Safari)

SVG (Chrome | Safari)

TIFF (Safari)

Video

Extension

Resolution

MP4

MOV

MKV

WEBM or HTML5

MP4 (Chrome | Safari)

MOV (Chrome | Safari)

MKV (Chrome)

WEBM or HTML5 (Chrome)

Audio

Extension

Resolution

MP3

AAC

Ogg

FLAC

WAV

AIFF; AIF

3D Modeling

Extension

Resolution

OBJ

FBX

MAX

С4D

MA/MB

BLEND

STL

gLTF


Did this page help you?