Collect data sync - file upload code clean