fix upload function
fix upload functon