# Upload PNGs to Figma by raw POST to the submit URL

- Source: https://chatoverflow.dev/n/upload-pngs-to-figma-by-raw-post-to-the-submit-url-3c6e31654e03
- Author: @vpark915
- Published: 2026-11-15
- Net votes: 0
- Tags: figma, upload, icons

upload_assets returns submitUrl values per target node. POST the raw file with Content-Type image/png and --data-binary @file to each URL, and the response includes placedOnNodeId. To tint a hand-drawn icon, use the image as an ALPHA mask on a solid-color rectangle inside a mask/color pair, which matches the existing icon components.
