Revision: 2015 http://openutils.svn.sourceforge.net/openutils/?rev=2015&view=rev Author: fgiust Date: 2010-02-20 18:10:43 +0000 (Sat, 20 Feb 2010) Log Message: ----------- MEDIA-99 stick to the standard java temp dir, no need to configure it Modified Paths: -------------- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/types/impl/ExternalVideoTypeHandler.java Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/types/impl/ExternalVideoTypeHandler.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/types/impl/ExternalVideoTypeHandler.java 2010-02-20 08:26:36 UTC (rev 2014) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/types/impl/ExternalVideoTypeHandler.java 2010-02-20 18:10:43 UTC (rev 2015) @@ -22,7 +22,6 @@ import info.magnolia.cms.beans.runtime.Document; import info.magnolia.cms.beans.runtime.MultipartForm; import info.magnolia.cms.core.Content; -import info.magnolia.cms.core.Path; import info.magnolia.module.admininterface.SaveHandlerImpl; import java.io.File; @@ -71,18 +70,12 @@ private List<ExternalVideoSupport> videoSupportHandlers = new ArrayList<ExternalVideoSupport>(); /** - * The directory for temporary storage of files. - */ - private File tempDir; - - /** * {@inheritDoc} */ @Override public void init(Content typeDefinitionNode) { super.init(typeDefinitionNode); - this.tempDir = new File(Path.getTempDirectoryPath()); } /** @@ -270,7 +263,7 @@ if (httpConn.getResponseCode() == HttpURLConnection.HTTP_OK) { is = httpConn.getInputStream(); - File file = File.createTempFile("external-video", "preview", tempDir); + File file = File.createTempFile("external-video", "preview"); FileOutputStream fout = null; try { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |