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.

See Also: ”EkFileSave” on page 477<br />

Parameters<br />

Parameter Type Description<br />

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

Example<br />

Automatic Upload<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. Otherwise, it is set to a server<br />

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 />

NewFilename Variant (String) If this value is present and is not an empty string, this<br />

filename is used by EkFileSave2 to write the file to the<br />

filesystem.<br />

This parameter lets the programmer override the forms<br />

filename to which the file data is attached.<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 />

FilePermissionSetti<br />

ng<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 parameter<br />

contains the filename used to store the file, including the<br />

full path.<br />

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

string.<br />

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

["NameConflict"], ["NewFilename"], ["AcceptType"], ["FilePermissionSetting"],<br />

["FileAttributes"])<br />

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

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

Saved successfully!

Ooh no, something went wrong!