From 5c883c0782baacf27ed6844fa0bc44539d73e8f5 Mon Sep 17 00:00:00 2001 From: XIGE Date: Fri, 5 Jun 2026 10:23:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=E3=80=8C/=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- file-upload.php | 444 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 444 insertions(+) create mode 100644 file-upload.php diff --git a/file-upload.php b/file-upload.php new file mode 100644 index 0000000..1eba775 --- /dev/null +++ b/file-upload.php @@ -0,0 +1,444 @@ + + +cid : $page->cid; + + if ($cid) { + \Widget\Contents\Attachment\Related::alloc(['parentId' => $cid])->to($attachment); + } else { + \Widget\Contents\Attachment\Unattached::alloc()->to($attachment); + } +} +?> + +
+
+ 或者 %s选择文件上传%s', '', ''); ?> +
+ +
+ + + + \ No newline at end of file