XStandard Developer's Guide: Web Integration: Step 5

The XHTML WYSIWYG Editor For Desktop & Web Applications

Step 5 - Uploading Images And Attachments To Libraries

Image and attachment libraries are folders on the Web server that contain files that are available to many Web pages. The screen shot below shows a typical website with both image and attachment libraries. Images are stored in a folder called "images" and attachments are stored in a folder called "docs".

This image shows a directory listing of files and folder for a Web site using libraries

To upload images and attachments to libraries, install the Image Library and Attachment Library Web Services on the Web server (see Web Services section) and set the following <param> tags to point to the Web Services.

  1. <param name="ImageLibraryURL" value="http://myserver/images/imagelibrary.asp" />
  2. <param name="AttachmentLibraryURL" value="http://myserver/docs/attachmentlibrary.asp "/>

By default, the URLs for uploaded files are going to be absolute (the URLs will have the name of the server). To get XStandard to generate relative URLs, modify the variable strBaseURL in imagelibrary.asp and attachmentlibrary.asp. For example:

  1. strBaseURL = "images/"

In order for images with relative URLs to display correctly in the editor, specify the base URL in the following <param> tag:

  1. <param name="Base" value="http://myserver" />

Free technical support is available to assist you in integrating XStandard into your solutions.