Adapted the file service for showing a file chooser.