Param |
Method |
Event |
|
|
UploadFileExecutePathv2.0 or higherWhen you configure a separate image server, specify the URL path for executing the image upload.
Syntax[get] HRESULT UploadFileExecutePath ( [put] HRESULT UploadFileExecutePath ( Parameters[get] type [out, retval] Return the specified value. [put] type [in] Specify the UploadFileExecutePath value.
Return ValuesReturns the currently set value.
RemarksTo specify the UploadFileExecutePath value, you must apply it after the Editor’s MainClass is called and before the Editor is loaded. The call can be performed via the created MainClass object's "params". For paths in the same server, you can specify it using the CrossEditor installation folder. If the image server is physically separated, or you cannot access the save path with the URL, you must install the image server so that it can provide web service. Remove the comments of the websource/web language (asp, aspx, php, jsp)/ImagePath file installed in the image server, and specify the physical path where the actual image is saved and the URL path. If the web language is ASP.NET, you must remove the _(underbar) of the ImagePath_.aspx file first.
Sample Codes<ASP> JavaScript var object = new NamoSE("test"); object.params.UploadFileExecutePath = "http://Domain/crosseditor/websource/asp/ImageUpload.asp"; object.EditorStart(); ImagePath.asp namoImagePhysicalPath = "C:\inetpub\wwwroot\ce3\namoimage" //Physical Path namoImageUPath = "/ce3/namoimage" //URL Path <ASP.NET> JavaScript var object = new NamoSE("test"); object.params.UploadFileExecutePath = "http://Domain/crosseditor/websource/aspx/ImageUpload.aspx"; object.EditorStart(); ImagePath.aspx namoImagePhysicalPath = "c:\\inetpub\\wwwroot\\ce3net\\namoimage" //Physical Path namoImageUPath = "/ce3net/namoimage" //URL Path <PHP> JavaScript var object = new NamoSE("test"); object.params.UploadFileExecutePath = "http://Domain/crosseditor/websource/php/ImageUpload.php"; object.EditorStart(); ImagePath.php $namoImagePhysicalPath = "C:\AutoSet6\public_html\ce3\namoimage" //Physical Path $namoImageUPath = "/ce3/namoimage" //URL Path <JSP> JavaScript var object = new NamoSE("test"); object.params.UploadFileExecutePath = "http://Domain/crosseditor/websource/jsp/ImageUpload.jsp"; object.EditorStart(); ImagePath.jsp namoImagePhysicalPath = "D:\\cejava\\htdocs\\ce3\\namoimage"; //Physical Path namoImageUPath = "/ce3/namoimage"; //URL Path |