Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The location of the image upload handler script must be defined within the EditLive! for Java configuration file. This setting is configured via the href attribute of the <httpUpload> <httpUpload> element of the configuration file. To use this example script the href attribute should point to the location of this script on the server.

...

This example script uploads images to the directory specified by the imageDir variable. In order for images to function correctly within EditLive! for Java the base attribute of the <httpUpload> <httpUpload_> element must reflect the location of the directory where images are to be stored on the Web server.

...

Ephox has written a sample image upload handler script using Active Server Pages and VBScript. This script can be found at SDK_INSTALL\webfolder\uploadscripts\aspnet\fileUpload.aspx and SDK_INSTALL\webfolder\uploadscripts\aspnet\fileUpload.aspx.cs where SDK_INSTALL represents the location where the EditLive! for Java SDK is installed.

...

The POST is then handled in the Page_Load method of the fileupload.aspx.cs page. This appears as follows:

...

2. EditLive! for Java's configuration file should now be edited to reflect the changes made in the previous step. You will find these settings within the <httpUpload> <httpUpload> element. The URL setting should reflect the location of the fileUpload.aspx file on your Web server.

The following example reflects the setting of the href attribute of the <httpUpload> <httpUpload> element if the upload script could be found at the URL http://www.yourserver.com/scripts/fileUpload.aspx.

...

3. Finally the HTTP Image Upload base attribute should be changed to reflect the location where images can be found on your Web server.

...