prepare for file log upload