added uploadFileFlag