eazy
Actions error in Infolist
I have the a infolist with 2 cards which are conditionally displayed. They both have different actions.
When I do the
start_configuration
action the card gets hidden and the other card gets displayed. But when I want to click the close_configuration
action I get a javascript error in my console. The action only works when I refresh, how can I fix this?15 replies
Spatie Media Library File Upload replacing every uploaded file
Hello, I have created a custom action for a file upload to my table, but when I upload a file it replaces all the already uploaded files. This hasn't been happening before.
After going through the code I found out the
deleteAbandonedFiles()
method in the plugin, this gets called in the saveRelationshipUsing()
method. It looks to me that only the uploaded file UUID gets added to the state so the rest of the files get deleted. But I'm not sure how to fix this.
My custom action:
18 replies