Watch Q2 Community Update | Learn about MCP, AI Agents & v5.0 Early Access
Watch now 🚀

Uploading files into Boost.space modules

This article provides a structured approach to uploading files into Boost.space modules. The process is applicable across various use cases, whether the objective is to attach a product image, store a document within a custom record, or integrate files into any other module that supports file fields.

The procedure consists of three main stages: retrieving the file from an external source, preparing it in the appropriate format, and transmitting it to Boost.space via its API. We begin by obtaining the file using a suitable module — for example, through an HTTP request to download it from a specified URL, or by sourcing it from cloud storage platforms such as Google Drive or Dropbox.

Next, the file or image is converted into a JSON data structure that contains:

  • image (or file) – it depends on what you map into a data structure. The file’s content, encoded in base64 format to ensure correct transfer and storage
  • name – the file’s designated name, such as image.jpg. Or how you want, but don’t forget to add .jpg.

Finally, the prepared data is sent to Boost.space by making an API call to the relevant module, such as Products or in this case a Custom module. This stage involves establishing a secure connection using an API key, mapping the file to the correct custom field, and ensuring it is stored in the intended record.

By following this method, users can reliably and consistently upload files from any source into Boost.space, eliminating unnecessary trial and error and ensuring smooth integration within their workflows.