Fixed file transfer for shortened files (truncating files was missing).