15.08.2013 Views

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Installing the Automatic Upload Feature<br />

Automatic Upload<br />

During the server installation of <strong>eWebEditPro</strong>, the following question appears:<br />

Do you want to register the Ektron automatic file upload component? If<br />

not, you will need to use another mechanism to upload images.<br />

You must click Yes to use the features described in this section.<br />

Modules that Enable Automatic Upload<br />

File Resides<br />

on the<br />

The feature contains two files to process the file transfer.<br />

Description<br />

eWepMediaTransfer.dll client The module that the editor uses to initiate a transfer.<br />

This object assembles form data and posts it to the<br />

server. The accepting page written to accept files is also<br />

specified on the client.<br />

eWepAutoSvr.dll server ASP module that extracts and saves the uploaded file.<br />

Its design is primarily for ASP.<br />

If a server-side script supports COM on a PC, you can<br />

use this object to help accept the file. The server script<br />

must allow the retrieval of the raw posted form data for<br />

this object to work.<br />

The feature also includes ewepreceive.asp, a default ASP script that uses the<br />

eWepAutoSvr.dll module and controls the upload if no other receiving page is<br />

available.<br />

For instructions on how to write a receiving script, see ”Creating an Automatic File<br />

Receive Script” on page 466.<br />

An Example of Customizing Automatic Upload<br />

The ASP database sample illustrates how to customize the Automatic Upload<br />

mechanism to update a database. Specifically<br />

• the mediaautoreceive.asp file receives the file and updates the database<br />

• the edit.asp file programmatically changes the editor's upload receiving page<br />

when a "ready" notification is received<br />

To try out the ASP database sample, follow this path, beginning with the Windows<br />

Start button:<br />

Start > Programs > Ektron > <strong>eWebEditPro</strong>3 > Samples > ASP > Database ><br />

ASP Database Sample<br />

<strong>Ektron®</strong> <strong>eWebEditPro</strong> Developer’s <strong>Reference</strong> <strong>Guide</strong>, Release 5.1, Revision 1 459

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!