titoshadow
Change uploaded file permissions
I'm uploading a file (ssh_key) with a FileUpload element, in my Resource.
However, I would like to make sure the permissions for the uploaded file are 0600, but I'm not being able to do so with "afterStateUpdated" method, which I though was the way to go, like this:
This example fails to set the file permissions, since it seems not to be able to find it.
What would be the best approach to achieve this? "ssh_keys" disk is a local folder, inside the app directories.
7 replies
Reuse infolist modal from resource on Notification view action
Is it possible to show an infolist modal from a Resource I have already defined ?
I'm sending a notification to some user, with a "More details" button, and I would like to know if this is easily achievable, or I have to build the infolist separately.
9 replies
Custom datetime filter within relation
I am building a table for an Alert model, whose timestamp is found through a 'timestamp' column from a related model (event), and I'm trying to get a filter on that, like this:
However, I get an error pointing 'time_from' and 'time_until' indexes do not exist in $data, which seems correct since $data is completely empty.
What I'm missing in between? Why is $data empty?
4 replies