But I still found an inconsistence between the upload and the browse server. For all clearance i clicked on the image button on the editor tool bar. The 'Image Properties' pop-up window appears. There you can go to the tab Upload, this will upload the image to /UserFiles/ When you select the button 'Browse Server' you are browsing in the folder /UserFiles/image and you are not able to get up to /UserFiles/. Anyone got an idea how to solve it?
private string ServerMapFolder( string resourceType, string folderPath )
{
// Get the resource type directory.
//string sResourceTypePath = System.IO.Path.Combine( this.UserFilesDirectory, resourceType ) ; // <-- This line has been commented
string sResourceTypePath = this.UserFilesDirectory ; // <-- This line has been added
// Ensure that the directory exists.
Util.CreateDirectory( sResourceTypePath ) ;
// Return the resource type directory combined with the required path.
return System.IO.Path.Combine( sResourceTypePath, folderPath.TrimStart('/') ) ;
}
oConnector.SendCommand = function( command, params, callBackFunction )
{
var sUrl = this.ConnectorUrl + 'Command=' + command ;
//sUrl += '&Type=' + this.ResourceType ; // <-- This line has been commented
sUrl += '&Type=' ; // <-- This line has been added
sUrl += '&CurrentFolder=' + encodeURIComponent( this.CurrentFolder ) ;
if ( params ) sUrl += '&' + params ;
// Add a random salt to avoid getting a cached version of the command execution
sUrl += '&uuid=' + new Date().getTime() ;
var oXML = new FCKXml() ;
if ( callBackFunction )
oXML.LoadUrl( sUrl, callBackFunction ) ; // Asynchronous load.
else
return oXML.LoadUrl( sUrl ) ;
return null ;
}
Re: File Browser and Quick Upload problem
I added the following key to web.config
But I still found an inconsistence between the upload and the browse server.
For all clearance i clicked on the image button on the editor tool bar.
The 'Image Properties' pop-up window appears. There you can go to the tab Upload, this will upload the image to /UserFiles/
When you select the button 'Browse Server' you are browsing in the folder /UserFiles/image and you are not able to get up to /UserFiles/.
Anyone got an idea how to solve it?
Thanks in advance
Re: File Browser and Quick Upload problem
private string ServerMapFolder( string resourceType, string folderPath ) { // Get the resource type directory. //string sResourceTypePath = System.IO.Path.Combine( this.UserFilesDirectory, resourceType ) ; // <-- This line has been commented string sResourceTypePath = this.UserFilesDirectory ; // <-- This line has been added // Ensure that the directory exists. Util.CreateDirectory( sResourceTypePath ) ; // Return the resource type directory combined with the required path. return System.IO.Path.Combine( sResourceTypePath, folderPath.TrimStart('/') ) ; }oConnector.SendCommand = function( command, params, callBackFunction ) { var sUrl = this.ConnectorUrl + 'Command=' + command ; //sUrl += '&Type=' + this.ResourceType ; // <-- This line has been commented sUrl += '&Type=' ; // <-- This line has been added sUrl += '&CurrentFolder=' + encodeURIComponent( this.CurrentFolder ) ; if ( params ) sUrl += '&' + params ; // Add a random salt to avoid getting a cached version of the command execution sUrl += '&uuid=' + new Date().getTime() ; var oXML = new FCKXml() ; if ( callBackFunction ) oXML.LoadUrl( sUrl, callBackFunction ) ; // Asynchronous load. else return oXML.LoadUrl( sUrl ) ; return null ; }