result save and upload file functions