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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Automatic Upload<br />

See Also: ”ClientMajorRev” on page 477; ”ClientMinorRev” on page 477<br />

This method is included to be compatible with existing EktronFileIO scripts, so<br />

that only minimal changes are needed to incorporate this module into existing<br />

routines.<br />

WARNING! This method is obsolete and should not be used in future implementations. It<br />

exists for compatibility purposes only. Replaced by EkFileSave2.<br />

Parameters<br />

Parameter Type Description<br />

BinaryFormData Variant(String) The entire form data in binary form.<br />

FormFieldName Variant(String) The name of the field used in the original form. This was<br />

a Form field defined as type="file".<br />

DestinationDir Variant(String) The fully qualified path (for example,<br />

c:\inetpub\wwwroot\test).<br />

ErrorCode Variant(Number) A user supplied variable. This is set to 0 (zero) for<br />

successful execution.<br />

Otherwise, it is set to a server error code.<br />

NameConflict Variant(String) Determines the behavior when the requested filename<br />

conflicts with an existing file. Choose "makeunique",<br />

"overwrite" or "error". "error" is the default.<br />

AcceptType Variant(String) Determines which file types the upload accepts (for<br />

example, image/gif, application/msword). Not supported<br />

in this release.<br />

FilePermissionSet<br />

ting<br />

Example<br />

ReturnString = EkFileSave ("BinaryFormData", "FormFieldName", "DestinationDir", ErrorCode,<br />

["NameConflict"], ["AcceptType"], ["FilePermissionSetting"], ["FileAttributes"])<br />

EkFileSave2<br />

Variant(String) Not supported in this release.<br />

FileAttributes Variant(String) Not supported in this release.<br />

ReturnString Variant(String) If ErrorCode (see above) is 0 (zero), this contains the<br />

filename used to store the file, including the full path. If<br />

ErrorCode is 0, this contains a matching error string.<br />

Description<br />

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

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

Saved successfully!

Ooh no, something went wrong!