Hi guys, please help me to understand how to automatically delete uploaded files after 24h?
what is the best way?
i am thinking to store all uploads links to the database,
after that run a backend workflow to
→ run only when “created data” its past + 20h
->in this workflow use DELETE UPLOAD FILE , on it Do a Search DB and grab the same URL with uploaded file that has “created data” more than 20h
after that delete a thing from DB
i am on right way?
i don’t know how to do ONLY WHEN: Search on DB that Create Data are more than 20h?
Then, on your app page, whenever a file is uploaded (i.e. when the fileuploader input’s value is changed) just schedule that workflow to run in 24 hours time, and pass the uploaded file into it:
Awesome flow @adamhholmes , thanks you for your effort,
it will be a problem if there its 300-400 files a day? all scheduled to the backend after 24h?
it will store all this information on the backend when will be scheduled?
it will look like the scheduled API backend workflow only when last item on DB creation data its more than 24?
on the backend workflow delete the upload file do a search DB for lines that create data its more than 24 hours? is where i am stacked,
Once datatype thing will be created, database trigger will start working. For every thing.
Like if
first thing was created at 18.10
second thing was created at 19.10
it mean first file will be deleted next day in 18.10 and other in 19.10 respectively