| <!-- | |
| #* Licensed to the Apache Software Foundation (ASF) under one | |
| or more contributor license agreements. See the NOTICE file | |
| distributed with this work for additional information | |
| regarding copyright ownership. The ASF licenses this file | |
| to you under the Apache License, Version 2.0 (the | |
| "License"); you may not use this file except in compliance | |
| with the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, | |
| software distributed under the License is distributed on an | |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| KIND, either express or implied. See the License for the | |
| specific language governing permissions and limitations | |
| under the License.*# | |
| --> | |
| <style type="text/css"> | |
| td.fields { padding-top: 0.75em; } | |
| </style> | |
| Demonstration of file upload <tt>FileField</tt> control. Please select one | |
| or more files to upload: | |
| <p/> | |
| $form | |
| <p> </p> | |
| #if ($fileItem1) | |
| <table border="1" cellspacing="0" cellpadding="6" style="margin-left:1em;empty-cells:show;width:300px"> | |
| <tr> | |
| <td colspan="2"><span style="font-size:110%; color:green"><b>File Upload 1 Result</b></span></td> | |
| </tr> | |
| <tr> | |
| <td><b>File Name</b></td> <td>$fileItem1.name</td> | |
| </tr> | |
| <tr> | |
| <td><b>File Size</b></td> <td>$format.decimal($fileItem1.size) bytes</td> | |
| </tr> | |
| <tr> | |
| <td><b>Content Type</b></td> <td>$fileItem1.contentType</td> | |
| </tr> | |
| <tr> | |
| <td><b>Description</b></td> <td>$fileDesc1</td> | |
| </tr> | |
| </table> | |
| #end | |
| <p/><p/> | |
| #if ($fileItem2) | |
| <table border="1" cellspacing="0" cellpadding="6" style="margin-left:1em;empty-cells:show;width:300px"> | |
| <tr> | |
| <td colspan="2"><span style="font-size:110%; color:green"><b>File Upload 2 Result</b></span></td> | |
| </tr> | |
| <tr> | |
| <td><b>File Name</b></td> <td>$fileItem2.name</td> | |
| </tr> | |
| <tr> | |
| <td><b>File Size</b></td> <td>$format.decimal($fileItem2.size) bytes</td> | |
| </tr> | |
| <tr> | |
| <td><b>Content Type</b></td> <td>$fileItem2.contentType</td> | |
| </tr> | |
| <tr> | |
| <td><b>Description</b></td> <td>$fileDesc2</td> | |
| </tr> | |
| </table> | |
| #end |