Format file
Check if file exists in download controller.
Delete unused commented code