From 0458bce572e177dea92ae7f65c9de805c3623468 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 8 Apr 2016 16:27:06 +0100 Subject: [PATCH] upload.php --- lib/php/upload.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/php/upload.php diff --git a/lib/php/upload.php b/lib/php/upload.php new file mode 100644 index 00000000..dd7151ed --- /dev/null +++ b/lib/php/upload.php @@ -0,0 +1,18 @@ +
+ + +" value="123" /> + + + +
+ $error) { + if ($error == UPLOAD_ERR_OK) { + $tmp_name = $_FILES["pictures"]["tmp_name"][$key]; + $name = $_FILES["pictures"]["name"][$key]; + move_uploaded_file($tmp_name, "$uploads_dir/$name"); + } +} +?> -- 2.47.3