Sometime we permanently lose custom form uploaded files after the cron run, this is due to the file status flag. Here is an example how to add custom form file upload permanently available on the website.
Here I created a sample form from FormBase, and added form element image with managed_file type.