Bulk image uploader (simplified)

[blockchain/moralis/actions/Bulk image uploader (simplified)]


Uploads multiple images and stores the ipfs URLs in the state. Example:

  1. {}@0 receiced via state

  2. { "cwd": "./nft", "images-directory": "nft/batch-images", "moralis-api-key": "API_KEY" }@0 received via params 3.{ "image-names": [ "logo.jpg" ], "image-paths": [ "nft\batch-images\logo.jpg" ], "image-upload-data": [ { "path": "nft\batch-images\logo.jpg", "content": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3" } ], "image-urls": [ "https://ipfs.moralis.io:2053/ipfs/QmVsdDLF8gmZeUCdrqgjXHLZ4VupdvxQaCiCdDvVApmR2o/nft\batch-images\logo.jpg" ] }@0 sent via state


Keywords: batch, bulk, minting, nft, crypto, scripting, action, no-code

Input ports

  • state: any

    Receives script state. Example: {}@0

  • params:

    {"cwd": string, "images-directory": string, "moralis-api-key": string}

    Recieves upload images script parameters. Example: { "cwd": "./nft", "images-directory": "nft/batch-images", "moralis-api-key": "API_KEY" }

Output ports

  • state: any

    Sends updated script state. Example: { "image-names": [ "logo.jpg" ], "image-paths": [ "nft\batch-images\logo.jpg" ], "image-upload-data": [ { "path": "nft\batch-images\logo.jpg", "content": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3" } ], "image-urls": [ "https://ipfs.moralis.io:2053/ipfs/QmVsdDLF8gmZeUCdrqgjXHLZ4VupdvxQaCiCdDvVApmR2o/nft\batch-images\logo.jpg" ] }

Last updated