Title: Block API &#8211; File Field &#8211; multiple files
Last modified: April 2, 2024

---

# Block API – File Field – multiple files

 *  [PaulH](https://wordpress.org/support/users/paulhuckstepp/)
 * (@paulhuckstepp)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/block-api-file-field-multiple-files/)
 * I’m trying to set up a custom block that will allow the user to add multiple 
   images to it (slideshow). However, after adding a file field and setting the 
   file_format_type to multi, and file_type to images, the field doesn’t show up.
 * I tried setting it to single image, and the field shows but it will not show 
   a thumbnail for a selected image.
 * The field definition I’m using is based on one I created in the field editor 
   for Posts. As there isn’t any reference in the docs for the file field type for
   the Block API.
 * And I presume that repeatable fields are not possible with the Block API at the
   moment?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [pdclark](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/block-api-file-field-multiple-files/#post-17546182)
 * Difficult to say without running tests on the implementation. The plugin Slack
   channel is one way to share more complex code bases without it being archived
   online.
 * The first place to check would be the JavaScript error console.
 * Another workaround might be to use a relationship field instead, either to a 
   post with a file field, to an attachment post type (Media Library), or to use
   multiple file fields.
 *  Thread Starter [PaulH](https://wordpress.org/support/users/paulhuckstepp/)
 * (@paulhuckstepp)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/block-api-file-field-multiple-files/#post-17547097)
 * Thanks for the info. I’ll look into it. According ot the docs ‘relationship’ 
   fields are not available with the block api.
 * FYI – There are no errors in the javascript console.
    -  This reply was modified 2 years, 2 months ago by [PaulH](https://wordpress.org/support/users/paulhuckstepp/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Block API – File Field – multiple files’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [PaulH](https://wordpress.org/support/users/paulhuckstepp/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/block-api-file-field-multiple-files/#post-17547097)
 * Status: not resolved