Add code function design for upload helper