Hello!
I like your plugin and it is easy to configure, however I'm having a hard time using the embedded file manager as a form field in a resource create/edit form.
My Eloquent model has a field called "logo" it is a text field that stores the path to an image in the storage folder. How can I use the embedded manager to allow a user to select a file and save the path to the selected file in the "logo" field of my model?
I've also tried adding a new column to the model's table called "file_system_item_id" and created a HasOne relationship on my model linking it to the FileSystemItem model, but have had no success with that either.
this is what my file manager looks like in my form schema:
FileManagerEmbed::make()
->disk('public')
->columnSpanFull()
->initialFolder('logos')
->target('logos')
->statePath('file_system_item_id'), // or ->statePath('logo')
When the form displays, I can see the contents of the logos folder and I can select one or more files, but that is all.
I'm using Laravel 13.x, Filament 5.x with a LAMP stack and php 8.3.6.
Any help on this would be greatly appreciated!
Thanks!
Hello!
I like your plugin and it is easy to configure, however I'm having a hard time using the embedded file manager as a form field in a resource create/edit form.
My Eloquent model has a field called "logo" it is a text field that stores the path to an image in the storage folder. How can I use the embedded manager to allow a user to select a file and save the path to the selected file in the "logo" field of my model?
I've also tried adding a new column to the model's table called "file_system_item_id" and created a HasOne relationship on my model linking it to the FileSystemItem model, but have had no success with that either.
this is what my file manager looks like in my form schema:
When the form displays, I can see the contents of the logos folder and I can select one or more files, but that is all.
I'm using Laravel 13.x, Filament 5.x with a LAMP stack and php 8.3.6.
Any help on this would be greatly appreciated!
Thanks!