S3 reads files but doesn't populate table fields

I have made a connection to a Spaces bucket. I can see the data in the network response. I used the bs5 table generator for a quick report to list the details but it's not populating the table.

<table class="table">
                    <thead>
                        <tr>
                            <th>Is truncated</th>
                            <th>Contents</th>
                            <th>Name</th>
                            <th>Prefix</th>
                            <th>Max keys</th>
                            <th>Key count</th>
                            <th>Marker</th>
                        </tr>
                    </thead>
                    <tbody is="dmx-repeat" dmx-generator="bs5table" dmx-bind:repeat="sc_spcsList.data.listFiles" id="tableRepeat2">
                        <tr>
                            <td dmx-text="Contents[0].Key"></td>
                            <td dmx-text="Contents"></td>
                            <td dmx-text="Name"></td>
                            <td dmx-text="Prefix"></td>
                            <td dmx-text="MaxKeys"></td>
                            <td dmx-text="KeyCount"></td>
                            <td dmx-text="Marker"></td>
                        </tr>
                    </tbody>
                </table>

I threw the Contents[0].Key in there to see if that would make a difference.

what is Force path style for:
image

Seems like youre repeat is on the false array.
You are using the top array of listFiles instead of listFiles.Contents

So when using the table generator, use the array Contents under listFiles from your SC Action. (Not directly the listFiles Array)

With your current setup you try to repeat over listFiles object which in your case is a single entry.

Here you can read about path and host style. Its related to the style how the keys are built for the files api by s3. DO uses also path style on their spaces product. S3 path style types

thanks and for the reference link also

1 Like