This tag uses DHTML code to allow your site to allow multiple file uploads without having to hand code the upload fields. You simply specify the field information once, and the end-user can add or remove upload fields on the fly.
Basic Example:
This example uses the default setting which only display the file input and browse button.
<cf_dhtmlMultiUpload>
Example with Default Description:
This example adds the default description field and specifies an alternate HTML container in which the upload fields are held. The HTML container is simply a wrapper around the upload form and is used in the internal javascript.
<cf_dhtmlMultiUpload useDescription="true" container="myFiles">
Example with additional fields:
This example adds additional fields (useful if uploading to a database)...
<cf_dhtmlMultiUpload container = "myContainer" useDescription="true" descriptionFieldName="myDescription" fieldCount = "2" fieldTitle_1 = "Extra field one" fieldName_1 = "ExtraFieldOne" fieldTitle_2 = "Second Extra Field" fieldName_2 = "ExtraFieldTwo">
What this tag does not do:
This tag does not physically process the uploads at this time. The tag was originally intended to provide the client side functionality required for multiple file uploads and passing the required information back the server so the webmaster/developer can do what they want with the files being uploaded. There is a debugging feature built-in to the tag, which is useful if for customizing an upload handler.
With that said, the tag does include the basic logic for processing the uploads, but the code for that has been finalized.
|