Blog / .NET
106 Posts
.NET
Design of File Upload Service
.NET File Upload Service Design Preface Learned a small backend project on Bilibili and found that the file upload design was quite good. I will implement and explain it here. Project Structure: Based on Strategy + Factory Pattern to implement the file upload service Enum Create in the Model layer ```csharp public enum UploadMode { Local = 1, //Local upload Qiniu = 2 //Qiniu Cloud upload } ``` Step 1: Create file strategy and factory
查看全文