Refactored to enable disabling of upload_file check at config level.

- Enables web tests to work.