add the function to upload file