I am trying to pull the filename out of a directory without the extension.
I am kludging my way through with the following:
foreach ($allowed_files a
list($file) = explode('.', $filename);