#27929

Java API offers an alternative method to create tmp file, which allows to specify tmp/ directory location:

createTempFile(String prefix, String suffix, File directory)

A call of the method may look like that:

File file = File.createTempFile(“attachment”, “.” + fileName, new File(“e:\another\temp”));