function and upload file practice