3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
4 <title>File Upload Field Example</title>
5 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
6 <script type="text/javascript" src="../../adapter/ext/ext-base.js"> </script>
7 <script type="text/javascript" src="../../ext-all-debug.js"> </script>
9 <link rel="stylesheet" type="text/css" href="file-upload.css"/>
10 <script type="text/javascript" src="../ux/FileUploadField.js"></script>
11 <script type="text/javascript" src="file-upload.js"></script>
13 <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
14 <style type="text/css">
16 background: url('../shared/icons/fam/image_add.png') no-repeat 0 0 !important;
19 border: 2px solid #ccc;
28 <h1>File Upload Field</h1>
29 <p>The js is not minified so it is readable. See <a href="file-upload.js">file-input.js</a>.</p>
32 <b>Basic FileUpload</b><br />
33 A typical file upload field with Ext style. Direct editing of the text field cannot be done in a
34 consistent, cross-browser way, so it is always read-only in this implementation.
35 <div id="fi-basic"></div>
36 <div id="fi-basic-btn"></div>
40 <b>Basic FileUpload (Button-only)</b><br />
41 You can also render the file input as a button without the text field, with access to the field's value via the
42 standard <tt>Ext.form.TextField</tt> interface or by handling the <tt>fileselected</tt> event (as in this example).
43 <div id="fi-button"></div>
44 <div id="fi-button-msg" style="display:none;"></div>
45 <div class="x-clear"></div>
49 <b>Form Example</b><br />
50 The FileUploadField can also be used in standard form layouts, with support for anchoring, validation (the
51 field is required in this example), empty text, etc. This example also demonstrates using the
52 <tt>buttonCfg</tt> option to provide a customized icon upload button.
53 <div id="fi-form"></div>