Update the uploadFileSession method in the example