Version

OnFormDataSubmit Field

It is fired before submitting to the server the uploading file(and its additional data if any). It could be used to append additional data fields to the FormData object(if the browser supports HTML5 file API - like newest Chrome, Firefox, IE11+). If the browser does not support HTML5 file API(IE10 and older) it could be added these data fields(as hidden input fields) to the form. Use the public API function addDataFields. Function takes arguments evt and ui. Use ui.fileId to get unique identifier of the file. Use ui.fileInfo to get reference to the fileInfo object - containing information for the fileName, fileSize, serverMessage, etc. Use ui.xhr to get reference to the original XMLHttpRequest object(if the browser supports HTML 5 file API - if not it is undefined). Use ui.formData to get reference to FormData object(if the browser supports HTML5 file API) OR reference to jQuery representation of FORM. Use ui.owner in order to access the igUpload widget object.
Syntax
'Declaration
 
Public Const OnFormDataSubmit As System.String
public const System.string OnFormDataSubmit
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub