post body file logic