Issue #1472378 by elliotttf, Dave Reid: Fixed DrupalRemoteStreamWrapper::getMimeType() should be only looking at the path of the file and exclude any query strings or fragments.