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.

Managing Images<br />

(installed with the <strong>eWebEditPro</strong> server-side installation) in its most basic sense.<br />

The <strong>eWebEditPro</strong> editor is not part of these samples. Gaining familiarity with the<br />

DLL helps you to integrate it into your own external upload mechanism.<br />

This section explains:<br />

• Creating an ASP page that asks the user to select a file<br />

• Creating an ASP page that performs the upload<br />

• Examining the EktronFileIO upload method<br />

• Examining return values for errors and file name changes<br />

• Retrieving the values of field items on a submitted form<br />

When using EktronFileIO, keep these in mind:<br />

• The ASP mechanism processes the posted information<br />

• The EktronFileIO must be registered on the server (see ”Registering<br />

EktronFileIO.dll” on page 411)<br />

• For security reasons, files cannot be uploaded without user intervention<br />

• All data sent to EktronFileIO is contained in a form that is posted to the server<br />

Using EktronFileIO involves four steps:<br />

1. Creating a Selection Web Page<br />

2. Creating a Form with a File Selection Field Item<br />

3. Creating an ASP Page to Activate the Posted Upload<br />

4. Providing Upload Feedback<br />

Step 1: Create a Selection Web Page<br />

In this step, we create a simple ASP page that contains an upload and cancel<br />

button. The Upload button is a submit button.<br />

Below is the HTML for this page. Save the file as simpleupload.asp within the<br />

server's Web directory.<br />

<br />

<br />

EktronFileIO Upload Example<br />

<br />

<br />

Upload a File with EktronFileIO<br />

<br />

<br />

<br />

<br />

<br />

Step 2: Create a Form with a File Selection Field Item<br />

Within the HTML that the user interacts with, we need to create a form that is<br />

submitted to the server. The form contains the name of the file to upload and,<br />

optionally, other information we may want to use.<br />

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

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

Saved successfully!

Ooh no, something went wrong!