commit 5c883c0782baacf27ed6844fa0bc44539d73e8f5 Author: XIGE Date: Fri Jun 5 10:23:33 2026 +0800 上传文件至「/」 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