File writes post body  correctly, returns 200 if file contents are empty on post