Not possible to allow for multiple files in model custom field

What I’m trying to do
I’m trying to create a ‘project’ content model that includes multiple pictures in a ‘media’ field. But i realised that this doesn’t seem possible. Or am I missing something? (fairly new to builder).

Code stack
React, Gatsby.js

Screenshots
An option for multiple files is missing

Resulting options for content entry creation: i can only pick 1 image

How could I make this work? If there isn’t an easy fix, could you please suggest a workaround?

Thank you :pray:

Hello @vincentreynaud,

Welcome to the builder.io forum post.

Creating a list type field with a file subfield is the way to go for creating a “project” content model that includes multiple pictures in a “media” field. Here’s a step-by-step guide to achieve it:

Add Custom Fields:

  1. Within your created model, click the Edit Fields button.
  2. Click + New Field.
  3. Name your field (e.g., “media”).
  4. Choose Type: List.
  5. After selecting List, you’ll have an option to add subfields.
    * Click + New Subfield.
    * Name the subfield (e.g., “media”).
    * Choose Type: File.
    * Optional: Restrict file types to image formats like jpeg and png.
  6. Save the field and ensure it’s correctly listed under your model.

This setup ensures that your “Project” model can handle multiple images in the “media” field. For more details, refer to the Custom Fields documentation.

Thanks,

thanks @manish-sharma!

I didn’t realise we could do this. Probably good to leave this forum question up for others who might struggle.

I’m coming from contentful and I quite like how their UI is designed to allow for multiple entries. Maybe a good suggestion to improve the builder UI/UX?

Cheers!

Hello @vincentreynaud,

It’s great to hear that the information was helpful. Leaving this forum question up will definitely benefit others who might face similar challenges.

Regarding your experience with Contentful, we appreciate your input on their UI design. Improving the builder UI/UX is always a priority for us, and your suggestion to incorporate features that allow for multiple entries is valuable. We’ll consider this for future updates.

Thanks again for your contribution!

Best regards,

1 Like