diff --git "a/\345\221\250\346\230\237\345\256\207/20220621-\346\226\207\344\273\266\346\211\251\345\261\225\345\220\215\351\252\214\350\257\201.md" "b/\345\221\250\346\230\237\345\256\207/20220621-\346\226\207\344\273\266\346\211\251\345\261\225\345\220\215\351\252\214\350\257\201.md" new file mode 100644 index 0000000000000000000000000000000000000000..9b7486b86e3827a600c7ff9c29938bdcc2112247 --- /dev/null +++ "b/\345\221\250\346\230\237\345\256\207/20220621-\346\226\207\344\273\266\346\211\251\345\261\225\345\220\215\351\252\214\350\257\201.md" @@ -0,0 +1,12 @@ +# 文件扩展名验证 + 限制上传文件扩展名以及文件最大值 + 在appsettings.json中新增代码 + "UploadFilePath":{ + "FilePath":"StaticFiles", + "AllowFileExtensions":".pdf,.jpg", + "MaxFileSize":"102400" + } +![蛇皮](./imgs/0621.png) +![蛇皮](./imgs/0622.png) +![蛇皮](./imgs/0623.png) +![蛇皮](./imgs/0624.png) \ No newline at end of file diff --git "a/\345\221\250\346\230\237\345\256\207/imgs/0621.png" "b/\345\221\250\346\230\237\345\256\207/imgs/0621.png" new file mode 100644 index 0000000000000000000000000000000000000000..be613973b78e9093e9563e915dc37532822698f4 Binary files /dev/null and "b/\345\221\250\346\230\237\345\256\207/imgs/0621.png" differ diff --git "a/\345\221\250\346\230\237\345\256\207/imgs/0622.png" "b/\345\221\250\346\230\237\345\256\207/imgs/0622.png" new file mode 100644 index 0000000000000000000000000000000000000000..cfa58cf436aded6c3e86f433d83fd8e3dfe2de2a Binary files /dev/null and "b/\345\221\250\346\230\237\345\256\207/imgs/0622.png" differ diff --git "a/\345\221\250\346\230\237\345\256\207/imgs/0623.png" "b/\345\221\250\346\230\237\345\256\207/imgs/0623.png" new file mode 100644 index 0000000000000000000000000000000000000000..6768bae521373d1baf1380a2d622a7db9b538cab Binary files /dev/null and "b/\345\221\250\346\230\237\345\256\207/imgs/0623.png" differ diff --git "a/\345\221\250\346\230\237\345\256\207/imgs/0624.png" "b/\345\221\250\346\230\237\345\256\207/imgs/0624.png" new file mode 100644 index 0000000000000000000000000000000000000000..19fcfdd9d322644748e0b938f0f2949da9d601be Binary files /dev/null and "b/\345\221\250\346\230\237\345\256\207/imgs/0624.png" differ