My question is about i store files (audio) in a directory with a reference in db ( mysql) and i wanna set a lifetime to this file to prevent server overflow.
I search in google and sails doc but not see anything reference, Anyone know how to i can watch the file to remove after do the time?
The best way its make a php file to call an localhost url [you can make a route locally by policies] and call that file with crontab every x/time
just do:
task.php
This happens because sails its a REST api and only works with petition and you cant automate task like php,java,etc…