<httpUpload> Configuration Element

This element allows for the configuration of information which is used when using HTTP upload within Ephox EditLive! for XML to upload embedded image and media files.

Configuration Element Tree Structure

<editLive>
  ...
  <mediaSettings>
    <httpImageUpload ... />
  </mediaSettings>
  ...
</editLive>

Required Attributes

base

This attribute defines the location where images can be found after they have been uploaded. For more information please see the article on HTTP upload.

href

This attribute defines the location on the Web server of the script which handles image uploads. For more information please see the article on HTTP upload.

Child Elements

<httpUploadData>

This element is used to provide extra information when performing a HTTP upload. This can be used so that extra information is provided to your HTTP upload handler script. Information is provided in name and value pairings.

Example

The following example demonstrates how to define the base and href attributes for EditLive! for XML.

<editLive>
    ...
    <mediaSettings>
        <images>
            <httpImageUpload 
                base="http://yourserver.com/imagedir/" 
                href="http://yourserver.com/scripts/uploadhandler.asp" 
             />
            ...
        </images>
    </mediaSettings>
    ...
</editLive> 

Remarks

The <httpUpload> element can appear only once within the <mediaSettings> element.

If there is no <httpUploadData> element(s) then <httpImageUpload> must be a complete tag, it cannot contain a tag body. Therefore the tag must be closed in the same line. It should appear as below:

<httpImageUpload base=... />

If there are <httpUploadData> elements present then the <httpUpload> element needs to have both opening and closing tags. It should appear as below:

...
<httpImageUpload base=... >
  <httpUploadData name=... />
  <httpUploadData name=... />
</httpImageUpload>
...

See Also