Filepond fieldset not working as expected?

i’m trying to make a generic laravel component for simple filepond use since it’s pure js and laravel i don’t want to get in much of the issues that would be simpler if i was using something like vue

so i want to populate from the html directly using the fileset

Is a bit messy but i guess the idea is understandable, however maybe because i’m trying to acces a private file via url (i mean it’s not public and is served directly from the URL it seems it can’t be found maybe i’m misunderstanding the usage fieldset needs an expanded section in documentation thanks before hand tell me if you would like to see anything else in the code

if i remove the field set it clearly shows the correct accesible full url in the html

@php
    // Set defaults
    $inputId = $id ?? $name;
    $error = $errors->first($name);
    $accept = $accept ?? 'image/*';
    $multiple = $multiple ?? false;
    $required = $required ?? false;
    $files = $files ?? [];


    $existingFile = $existingFile ?? null;
@endphp
<script>
    console.log("{{ $existingFile }}");
</script>

<div class="fv-row mb-8 {{ $attributes->get('class', '') }}">
    <div class="filepond-container">
        @if(isset($label))
            <label for="{{ $inputId }}" class="form-label {{ $required ? 'required' : '' }}">
                {{ $label }}
            </label>
        @endif

        <fieldset>
            
            <legend>Files</legend>
            <!-- a list of already uploaded files -->
            <ul>
                @foreach ($files as $file)
                    <li>
                        <label>
                            <input value="{{ $file }}" data-type="local" checked type="checkbox" />
                            {{ $file }}
                        </label>
                    </li>
                @endforeach
            </ul>

                <input 
                    type="file"
                    name="{{ $name }}"
                    id="{{ $inputId }}"
                    class="filepond @error($name) is-invalid @enderror"
                    accept="{{ $accept }}"
                    {{ $required ? 'required' : '' }}
                    {{ $multiple ? 'multiple' : '' }}
                    {{ $attributes->except(['class', 'name', 'id', 'accept', 'multiple', 'required','files']) }}
                />
        </fieldset>
    </div>

    @error($name)
        <div class="invalid-feedback">{{ $message }}</div>
    @enderror
</div>