post file as hidden file first and then rename