FileUpload
From Plex-XML
There is a field called 'FileUploadDummy' in the aaFields Model. If you put that field in your XMLOutput variable you will get an HTML File-Upload field in your HTML-Response.
In the background in XSLT each field with the implementation name 'FileUploadDummy' will be converted to an input field of type 'file'. You are able to set all format field properties like label, position, fieldset for that field. The size and style of that field can not be modified because each browser handles an field of type 'file' different.
Be aware that a request with an file upload uses enctype="multipart/form-data" and can't have web parameter as array. If you like to use the normal DictionaryInsert or DictionaryUpdate functions for an file upload you need to define the input parameter separately.
Request.xml
In your request.xml you can define an Web-Request that receives an file upload like the following example:
<webrequest name="DocFilUDUP"> <request name="DocFilUDUP" extends="Update"> <plex-parameter type="web" name="UpdateKey_IdentifierDocFiles">IdentifierDocFiles</plex-parameter> <parameter type="file" name="File1" webfield="File1"> <plex-parameter type="web" name="FileInput_DocFileLocalPath">original</plex-parameter> <plex-parameter type="web" name="FileInput_DocFileMimeType">contenttype</plex-parameter> <plex-parameter type="web" name="FileInput_DocFilePath">newname</plex-parameter> <plex-parameter type="web" name="FileInput_DocFileSize">size</plex-parameter> </parameter> </request> <response> <error type="default" name="DEFAULT"/> <error type="reaction" name="READY" response="DocFilUDUP" value="OK"/> <reaction type="DEFAULT" target="DISPLAY" localized="true" name="/WEB-INF/resources/common/DictionaryEdit.xslt"/> <reaction type="READY" target="DISPLAY" usedefaultstyle="false" name="/WEB-INF/resources/@common_html@/ready.xslt"/> </response> </webrequest>
Plex
In the Security Model you will find some Java source codes to handle the uploaded files.

