create the upload function

create the upload function