466005 Throw exception if rename during Part.write(filename) fails
This commit is contained in:
parent
be3b9497a6
commit
aaf7a56a27
|
@ -275,6 +275,8 @@ public class MultiPartInputStreamParser
|
||||||
File f = new File(_tmpDir, fileName);
|
File f = new File(_tmpDir, fileName);
|
||||||
if (_file.renameTo(f))
|
if (_file.renameTo(f))
|
||||||
_file = f;
|
_file = f;
|
||||||
|
else
|
||||||
|
throw new IOException("Part rename failure: from "+_file.getName()+" to "+fileName + " in "+_tmpDir.getAbsolutePath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue