Add upload file function