Welcome to the home of the kiwi!

k.i.w.i.

overview    features    compatibility    roadmap    downloads    documentation    support
Getting Started | Domain Management | Services | Scripting: kiwi/Script | Mail Extension | Web Extension
kiwi/Script

FormFile

Normally to access the fields sent from a client web form you would use the FormField method, and whilst this remains the case for most HTTP form fields, using this method will only return the data included in the MIME header values and not the actual MIME entity body (ie. the file itself) which is what we're after.

Therefore when dealing with uploaded files it was found that it would also be beneficial for the application to have access to other MIME header fields such as:

So with that in mind the FormFile object was added to the Web Server CSL extension to solve this problem. For example, with the following CSL code snippet:

		FormFile ff = GetFileUpload( "upload_field_name")
	

If a MIME entity is found with this name a new FormFile object is returned, otherwise NULL is returned.

The following methods & properties are then available to the calling application:

Object Properties:
Object Methods:
Related Objects:
All content herein
Copyright (c) 2007-now Darren Alford.