summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/class/form.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/form.class.php b/app/class/form.class.php
index 529c480..3f28a36 100644
--- a/app/class/form.class.php
+++ b/app/class/form.class.php
@@ -232,6 +232,14 @@ class Form
/* return */
return count($this->errorlist) == 0;
}
+
+ /*
+ * Save file uploaded through web form
+ */
+ function saveUploadedFile($file, $filename)
+ {
+ return move_uploaded_file($file['tmp_name'], $filename);
+ }
}
?>