Fixed mistake with trying to read a submitted tarfile as a name instead of a fileobject.