1.SingletonConfigRead帮助类 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; using System.Web.Mvc; namespace WebApplication2.Models { public class SingletonConfigRead { public static readonly string C…
// 前台 var formData = new FormData(); var file = document.getElementById('myFile').files[0]; formData.append('myFile', file); var xhr = new XMLHttpRequest(); xhr.open('post', '/upload', true); xhr.upload.onprogress = function(e) { if (e.lengthComputab…