chat prepare files