• 大小: 22.13MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-08
  • 语言: 其他
  • 标签: MVC  WebApi  上传  

资源简介

.NetMvc调用WebApi接口进行上传文件

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;

namespace MvcUploadApi
{
    // 注意: 有关启用 IIS6 或 IIS7 经典模式的说明,
    // 请访问 http://go.microsoft.com/?linkId=9394801

    public class WebApiApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2172  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\App_Start\BundleConfig.cs

     文件        278  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\App_Start\FilterConfig.cs

     文件        603  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\App_Start\RouteConfig.cs

     文件       1113  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\App_Start\WebApiConfig.cs

     文件       1484  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\ApiDescriptionExtensions.cs

     文件       3195  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\App_Start\HelpPageConfig.cs

     文件       1124  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Controllers\HelpController.cs

     文件       1513  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\HelpPage.css

     文件        670  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\HelpPageAreaRegistration.cs

     文件      13704  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\HelpPageConfigurationExtensions.cs

     文件       1504  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Models\HelpPageApiModel.cs

     文件      17173  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\SampleGeneration\HelpPageSampleGenerator.cs

     文件       6943  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\SampleGeneration\HelpPageSampleKey.cs

     文件       1055  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\SampleGeneration\ImageSample.cs

     文件        974  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\SampleGeneration\InvalidSample.cs

     文件      19493  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\SampleGeneration\objectGenerator.cs

     文件        229  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\SampleGeneration\SampleDirection.cs

     文件        888  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\SampleGeneration\TextSample.cs

     文件        656  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Help\Api.cshtml

     文件        852  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Help\DisplayTemplates\ApiGroup.cshtml

     文件       1215  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Help\DisplayTemplates\HelpPageApiModel.cshtml

     文件         79  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Help\DisplayTemplates\ImageSample.cshtml

     文件        237  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Help\DisplayTemplates\InvalidSample.cshtml

     文件       1607  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Help\DisplayTemplates\Parameters.cshtml

     文件        899  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Help\DisplayTemplates\Samples.cshtml

     文件         94  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Help\DisplayTemplates\TextSample.cshtml

     文件       1087  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Help\Index.cshtml

     文件        246  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Shared\_Layout.cshtml

     文件       3010  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\Web.config

     文件        165  2016-06-25 11:05  MvcUploadFile\MvcUploadApi\Areas\HelpPage\Views\_ViewStart.cshtml

............此处省略1044个文件信息

评论

共有 条评论