aboutsummaryrefslogtreecommitdiffstats
path: root/root/base/file
diff options
context:
space:
mode:
Diffstat (limited to 'root/base/file')
-rw-r--r--root/base/file16
1 files changed, 16 insertions, 0 deletions
diff --git a/root/base/file b/root/base/file
new file mode 100644
index 0000000..c89c397
--- /dev/null
+++ b/root/base/file
@@ -0,0 +1,16 @@
+[%
+
+PROCESS field_base;
+
+control_block = 'fileselect_control';
+
+BLOCK fileselect_control;
+
+ %]<input type="file" [% IF id_attr; 'id="'; id_attr; '"'; END; connect_control(self, 'value');
+ # browsers ignore this for security reasons, can be uncommented for testing.
+ # ' value="'; self.value.filename | html; '"';
+ process_attrs(attrs) %] />[%
+
+END;
+
+%]