Changeset 1580
- Timestamp:
- 2008-02-21 11:56:37 (2 years ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/filemanager/connectors/cfm/cf_commands.cfm (modified) (4 diffs)
-
editor/filemanager/connectors/cfm/config.cfm (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/filemanager/connectors/cfm/cf_commands.cfm
r1565 r1580 33 33 <cfset var sFileExt = ""> 34 34 <cfset var sFileUrl = ""> 35 <cfset var sTempDir = ""> 35 36 <cfset var sTempFilePath = ""> 36 37 <cfset var errorNumber = 0> … … 39 40 <cfset var destination = ""> 40 41 41 <cftry> 42 <cffile action="UPLOAD" filefield="NewFile" destination="#GetTempDirectory()#" nameconflict="makeunique" mode="0755" /> 42 <cftry> 43 <cfif isDefined( "REQUEST.Config.TempDirectory" )> 44 <cfset sTempDir = REQUEST.Config.TempDirectory> 45 <cfelse> 46 <cfset sTempDir = GetTempDirectory()> 47 </cfif> 48 <cfif NOT DirectoryExists (sTempDir)> 49 <cfthrow message="Invalid temporary directory: #sTempDir#"> 50 </cfif> 51 52 <cffile action="UPLOAD" filefield="NewFile" destination="#sTempDir#" nameconflict="makeunique" mode="0755" /> 43 53 <cfset sTempFilePath = CFFILE.ServerDirectory & REQUEST.fs & CFFILE.ServerFile> 44 54 … … 93 103 94 104 <cfset destination = sServerDir & sFileName> 95 <!--- 96 <cfdump var="#sTempFilePath#"> 97 <cfoutput ><br /></cfoutput> 98 <cfdump var="#destination#"> 99 <cfabort> 100 ---> 105 101 106 <cflock name="#destination#" timeout="30" type="Exclusive"> 102 107 <cftry> … … 121 126 </cfcatch> 122 127 123 </cftry>128 </cftry> 124 129 125 130 <cfset SendUploadResults( errorNumber, sFileUrl, sFileName, customMsg ) > -
FCKeditor/trunk/editor/filemanager/connectors/cfm/config.cfm
r1565 r1580 62 62 Config.HtmlExtensions = "html,htm,xml,xsd,txt,js" ; 63 63 64 //Due to known issues with GetTempDirectory function, it is 65 //recommended to set this vairiable to a valid directory 66 //instead of using the GetTempDirectory function 67 //(used by MX 6.0 and above) 68 Config.TempDirectory = GetTempDirectory(); 64 69 65 70 // Configuration settings for each Resource Type -
FCKeditor/trunk/_whatsnew.html
r1579 r1580 120 120 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1815">#1815</a>] PHP integration: removed 121 121 closing tag: "?>", so no additional whitespace added when files are included.</li> 122 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1692">#1692</a>] ColdFusion file browser: 123 it is possible now to define TempDirectory to avoid issues with GetTempdirectory() returning 124 an empty string.</li> 125 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1379">#1379</a>] ColdFusion file browser: 126 resolved issues with OnRequestEnd.cfm breaking the file browser.</li> 122 127 </ul> 123 128 <p>