From 346812057a869200db6e04a89ab0e927b4e1587b Mon Sep 17 00:00:00 2001 From: deathmeat Date: Wed, 22 Aug 2007 10:13:38 +0000 Subject: [PATCH] BF [ 1779312 ] Open Attachment temporary file bug --- client/src/org/compiere/apps/Attachment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/org/compiere/apps/Attachment.java b/client/src/org/compiere/apps/Attachment.java index 3b75a9bda0..38bb97857e 100644 --- a/client/src/org/compiere/apps/Attachment.java +++ b/client/src/org/compiere/apps/Attachment.java @@ -504,7 +504,9 @@ public final class Attachment extends CDialog try { - String fileName = System.getProperty("java.io.tmpdir") + m_attachment.getEntryName(index); + String fileName = System.getProperty("java.io.tmpdir") + + System.getProperty("file.separator") + + m_attachment.getEntryName(index); File tempFile = new File(fileName); m_attachment.getEntryFile(index, tempFile);