DeleteAction, delete items in public/storage?
Hey!
I cant seem to find a way, for the DeleteAction to also delete a file from Public/storage.. Am i overlooking something?
Context: The system is a upload/download system, where i want to be able to delete certain files, after i've downloaded them.
I can however not seem to make a good way to use the DeleteAction to do this
I cant seem to find a way, for the DeleteAction to also delete a file from Public/storage.. Am i overlooking something?
Context: The system is a upload/download system, where i want to be able to delete certain files, after i've downloaded them.
I can however not seem to make a good way to use the DeleteAction to do this
Solution
Don’t use the action to delete the file. Use a model observer. Let the model delete the file.