Javascript 上载视频时获取内部服务器错误。但上传图像工作正常。什么是问题?

Javascript 上载视频时获取内部服务器错误。但上传图像工作正常。什么是问题?,javascript,c#,asp.net,asp.net-mvc,dropzone.js,Javascript,C#,Asp.net,Asp.net Mvc,Dropzone.js,我正在使用dropzone.js上传图像和视频。图像上传工作正常。但当我上传视频时,它抛出了内部服务器错误。请帮帮我。js文件中的maxFileSize是256MB,所以大小不是问题。我在ASP.NETMVC工作 HTML <div class="form-group"> <label for="inputEmail3" class="col-sm-2 control-label">Upload Title Image</label>

我正在使用dropzone.js上传图像和视频。图像上传工作正常。但当我上传视频时,它抛出了内部服务器错误。请帮帮我。js文件中的maxFileSize是256MB,所以大小不是问题。我在ASP.NETMVC工作

HTML

<div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">Upload Title Image</label>
            <div class="col-sm-8">
                <div class="main_page_area">
                    <div class="" id="container">
                        <div id="dropzone1" class="drag_area">Drag Here to Upload 1</div>
                        <div id="actions">
                            <div style="text-align:center"> <span style="display:none" class="btn btn-default fileinput-button"> <i class="glyphicon glyphicon-plus"></i> <span>Add files...</span> </span> </div>
                            <div style="width:100%;">
                                <span class="fileupload-process">
                                    <div id="total-progress" style="width:100%; margin-top:4px" class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">
                                        <div class="progress-bar progress-bar-success" style="width:0%;" data-dz-uploadprogress> </div>
                                    </div>
                                </span>
                            </div>
                        </div>
                        <div style="margin-bottom:10px; ">
                            <table border="0" width="100%" id="table">
                                <tr>
                                    <td>

                                        <div id="previews">
                                            <ul class="loop_row">
                                                <li class="loop_row" id="template" style="list-style:none; cursor:move">
                                                    <table class="my_row_style">
                                                        <tr>
                                                            <td><span class="preview"><img data-dz-thumbnail alt="" title="" /></span></td>
                                                        </tr>
                                                    </table>
                                                </li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
控制器操作结果

   public ActionResult addaboutftw(FormCollection form_collection){
        int result = 0;
        HttpPostedFileBase file = Request.Files[0]; ;
        string folderid = Guid.NewGuid().ToString();
        if (file != null)
        {
           if (file.ContentLength != 0)
            {
                        result = _ftwCommonMethods.UploadImage(file, folderid);
             }
         }
          return View(new AboutFtwViewModel());
   }

我遗漏了什么吗?请记住,它用于图像上传

在我上传视频时,Maxrequest长度超过了。为了解决这个问题,我在web.config文件中添加了以下设置。它成功了

<system.web>
    <httpRuntime targetFramework="4.5"  maxRequestLength="1048576" />
</system.web>
<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="1073741824" />
      </requestFiltering>
    </security>
    <validation validateIntegratedModeConfiguration="false" />
</system.webServer>

当我上传视频时,Maxrequest长度超过了。为了解决这个问题,我在web.config文件中添加了以下设置。它成功了

<system.web>
    <httpRuntime targetFramework="4.5"  maxRequestLength="1048576" />
</system.web>
<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="1073741824" />
      </requestFiltering>
    </security>
    <validation validateIntegratedModeConfiguration="false" />
</system.webServer>


检查服务器磁道/堆栈。检查服务器磁道/堆栈。