CADViewer Technical Documentation, Installation Guide and Reference Samples Library

File Loader Modal

The initialization methods cvjs_setServerFileLocation() and cvjs_setServerFileLocation_AbsolutePaths() controls the path to the file location, that links with the File Loader Modal.

// NOTE BELOW: THESE SETTINGS ARE FOR SERVER CONTROLS FOR UPLOAD OF FILES AND FILE MANAGER
// I am setting the full path to the location of the floorplan drawings (typically /home/myserver/drawings/floorplans/)
// and the relative location of floorplans drawings relative to my current location
// as well as the URL to the location of floorplan drawings with username and password if it is protected "" "" if not
// cvjs_setServerFileLocation(ServerLocation+'/content/drawings/dwg/', '../content/drawings/dwg/', ServerUrl+'/content/drawings/dwg/',"","");
cvjs_setServerFileLocation_AbsolutePaths(ServerLocation+'/content/drawings/dwg/', ServerUrl+'content/drawings/dwg/',"","");
// NOTE ABOVE: THESE SETTINGS ARE FOR SERVER CONTROLS FOR UPLOAD OF FILES AND FILE MANAGER

Click on the method to open the API documentation.

NOTE: If ServerLocation is set to “", the back-end converter will concatenate to the back-end installation path.

Last updated on 26 Feb 2022
Published on 9 Apr 2020