read file from local machine(my computer) and create a dataframe

khaansaab
New Contributor II

I want to create a notebook and add a widget which will allow the user to select a file from local machine(my computer) and read the contents of the file and create a dataframe. is it possible? and how? in dbutils.widgets i dont have any options for file uploading or file reading. is there an alternate way? please help.