Fix [ adempiere-ZK Web Client-2603516 ] Concurrency problem loading files

https://sourceforge.net/tracker2/?func=detail&atid=955896&aid=2603516&group_id=176962
Following advice from Heng Sin about not using user name
This commit is contained in:
Carlos Ruiz 2009-02-15 23:48:06 +00:00
parent 9282aca9cf
commit 6a05943ead
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ public class WFilenameEditor extends WEditor
String fileName = null;
try {
File tempFile = File.createTempFile(Env.getContext(Env.getCtx(), "#AD_User_Name")+"_", "_"+file.getName());
File tempFile = File.createTempFile("adempiere_", "_"+file.getName());
fileName = tempFile.getAbsolutePath();
fos = new FileOutputStream(tempFile);