uptime_file_upload code tidy-ups