From 389080d07f67bdcc5a0719b8889d8914c67ccdbe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A2=81=E8=A3=95?= <895585435@qq.com>
Date: Sat, 21 May 2022 11:17:31 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...07\344\273\266\344\270\212\344\274\240.md" | 47 +++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 "\346\242\201\350\243\225/20220518-\346\226\207\344\273\266\344\270\212\344\274\240.md"
diff --git "a/\346\242\201\350\243\225/20220518-\346\226\207\344\273\266\344\270\212\344\274\240.md" "b/\346\242\201\350\243\225/20220518-\346\226\207\344\273\266\344\270\212\344\274\240.md"
new file mode 100644
index 0000000..d8d2db1
--- /dev/null
+++ "b/\346\242\201\350\243\225/20220518-\346\226\207\344\273\266\344\270\212\344\274\240.md"
@@ -0,0 +1,47 @@
+```php
+size){
+ echo "文件超过1Mb,无法上传!";
+ }else{
+ echo "文件上传成功!";
+ }
+ }
+
+}
+
+
+```
+
+
+
+
+
+
+
+ 文件上传
+
+
+
+
+
\ No newline at end of file
--
Gitee
From ff79ef9c3a641d4a9c1a8acc606802a036b27d55 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A2=81=E8=A3=95?= <895585435@qq.com>
Date: Sat, 21 May 2022 03:25:06 +0000
Subject: [PATCH 2/2] =?UTF-8?q?update=20=E6=A2=81=E8=A3=95/20220518-?=
=?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0.md.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...518-\346\226\207\344\273\266\344\270\212\344\274\240.md" | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git "a/\346\242\201\350\243\225/20220518-\346\226\207\344\273\266\344\270\212\344\274\240.md" "b/\346\242\201\350\243\225/20220518-\346\226\207\344\273\266\344\270\212\344\274\240.md"
index d8d2db1..ea6590e 100644
--- "a/\346\242\201\350\243\225/20220518-\346\226\207\344\273\266\344\270\212\344\274\240.md"
+++ "b/\346\242\201\350\243\225/20220518-\346\226\207\344\273\266\344\270\212\344\274\240.md"
@@ -6,7 +6,7 @@ echo $error;
//判断文件是否上传成功
if ($error==0){
//判断文件格式
- $array = array("pdf","word");//允许上传的文件格式
+ $array = array("pdf","doxc");//允许上传的文件格式
$name = $_FILES['myfile']['name'];
$nameArr = explode(".",$name);
$nameArrT = $name[count($nameArr)-1];
@@ -27,7 +27,6 @@ if ($error==0){
}
-```
@@ -44,4 +43,5 @@ if ($error==0){