Add 2 function for the upload