Although, how would i go about displaying the options to be chosen? Ie which files are options.
Did you run the code? Assuming you change the file name to the one(s) you are looking for you will find they are all prepended a number
which when chosen will select that file name into the value $file.
If I have misunderstood, please explain further where you are unsure?