fix upload document