Add file_detector and tests, allows for remote uploads to work flawlessly.