nova-simple-repeatable icon indicating copy to clipboard operation
nova-simple-repeatable copied to clipboard

File field is not working

Open m-a-k-o opened this issue 4 years ago • 2 comments

When I try to save File, file is not saved.

            SimpleRepeatable::make('Súbory na stiahnutie', 'downloads', [
                Text::make('Názov', 'name')
                    ->rules(['required']),
                File::make('Súbor', 'file'),
            ]),
[{"file": [], "name": "Test"}]

m-a-k-o avatar Feb 09 '21 13:02 m-a-k-o

Hi! Supporting the File field is not an easy task due to the way Nova has implemented it and we're not currently planning on it. However, you're welcome to submit a PR to add support for it!

Tarpsvo avatar Feb 09 '21 13:02 Tarpsvo

@Tarpsvo Thank you for fast reply!

m-a-k-o avatar Feb 09 '21 13:02 m-a-k-o