Description Usage Arguments Details Value Note Examples
This renders a file selection form within a small panel widget. There are two steps needed to transfer a file: a) select a file through a dialog, b) save the file to the server by clicking the upload button.
1 2 3 4 5 6 |
text |
Instructional text. |
type |
only "open" implemented |
filter |
ignored |
handler |
optional handler bound via
|
action |
optional value to paramaterize handler |
container |
parent container |
... |
passed along to |
width |
a pre-specified width (in pixels) for the widget |
height |
a pre-specified height (in pixels) for the widget |
ext.args |
A list of extra arguments to pass to the ExtJS constructor |
When a file is uploaded, any change handlers are called.
The svalue
method gives the path of the uploaded
file, the [
method gives the original name of the
file when uploaded.
a GFile
instance
the svalue
method returns the temporary filename
of the uploaded file, or a value of ""
. The
[
method gives the original filename, once one is
uploaded.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.