Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8119525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:49:33+00:00 2026-06-06T04:49:33+00:00

my content post looks like this Content-Disposition: form-data; name=files[]; filename=LICENSE.TXT my asp.net mvc controller

  • 0

my content post looks like this

Content-Disposition: form-data; name=”files[]”; filename=”LICENSE.TXT”

my asp.net mvc controller looks like this

    [HttpPost]
    public JsonResult Upload(int id, IEnumerable<HttpPostedFileBase> files)
    {

        return new JsonResult { Data = files.Count(), JsonRequestBehavior = JsonRequestBehavior.AllowGet };
    }

My files is null.

HTML CODE

<form enctype="multipart/form-data" method="POST" action="/Document/Upload/1" id="fileupload">
  <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
  <div class="row fileupload-buttonbar">
    <div class="span9">
      <!-- The fileinput-button span is used to style the file input field as button -->
      <span class="btn btn-success fileinput-button">
        <i class="icon-plus icon-white"></i>
        <span>Add files...</span>
        <input type="file" multiple="multiple" name="files[]">
          <button class="btn btn-primary start" type="submit">
            <i class="icon-upload icon-white"></i>
            <span>Start upload</span>
          </button>
          <button class="btn btn-warning cancel" type="reset">
            <i class="icon-ban-circle icon-white"></i>
            <span>Cancel upload</span>
          </button>
          <button class="btn btn-danger delete" type="button">
            <i class="icon-trash icon-white"></i>
            <span>Delete</span>
          </button>
          <input type="checkbox" class="toggle">
            <!-- The global progress information -->
            <div class="span5 fileupload-progress fade">
              <!-- The global progress bar -->
              <div aria-valuemax="100" aria-valuemin="0"
              role="progressbar"
              class="progress progress-success progress-striped active"
              aria-valuenow="0">
                <div style="width:0%;" class="bar"></div>
              </div>
              <!-- The extended global progress information -->
              <div class="progress-extended">&#160;</div>
            </div>
            <!-- The loading indicator is shown during file processing -->
            <div class="fileupload-loading"></div>
            <br>
              <!-- The table listing the files available for upload/download -->
              <table class="table table-striped"
              role="presentation">
                <tbody data-target="#modal-gallery"
                data-toggle="modal-gallery" class="files">
                  <tr class="template-upload fade in">
                    <td class="preview">
                      <span class="fade"></span>
                    </td>
                    <td class="name">
                      <span>LICENSE.TXT</span>
                    </td>
                    <td class="size">
                      <span>10.75 KB</span>
                    </td>
                    <td>
                      <div aria-valuenow="0" aria-valuemax="100"
                      aria-valuemin="0" role="progressbar"
                      class="progress progress-success progress-striped active">

                        <div style="width:0%;" class="bar"></div>
                      </div>
                    </td>
                    <td class="start">
                      <button class="btn btn-primary">
                        <i class="icon-upload icon-white"></i>
                        <span>Start</span>
                      </button>
                    </td>
                    <td class="cancel">
                      <button class="btn btn-warning">
                        <i class="icon-ban-circle icon-white"></i>
                        <span>Cancel</span>
                      </button>
                    </td>
                  </tr>
                  <tr class="template-upload fade in">
                    <td class="preview">
                      <span class="fade"></span>
                    </td>
                    <td class="name">
                      <span>nunitTests.config</span>
                    </td>
                    <td class="size">
                      <span>0.42 KB</span>
                    </td>
                    <td>
                      <div aria-valuenow="0" aria-valuemax="100"
                      aria-valuemin="0" role="progressbar"
                      class="progress progress-success progress-striped active">

                        <div style="width:0%;" class="bar"></div>
                      </div>
                    </td>
                    <td class="start">
                      <button class="btn btn-primary">
                        <i class="icon-upload icon-white"></i>
                        <span>Start</span>
                      </button>
                    </td>
                    <td class="cancel">
                      <button class="btn btn-warning">
                        <i class="icon-ban-circle icon-white"></i>
                        <span>Cancel</span>
                      </button>
                    </td>
                  </tr>
                  <tr class="template-upload fade in">
                    <td class="preview">
                      <span class="fade"></span>
                    </td>
                    <td class="name">
                      <span>package.bat</span>
                    </td>
                    <td class="size">
                      <span>0.14 KB</span>
                    </td>
                    <td>
                      <div aria-valuenow="0" aria-valuemax="100"
                      aria-valuemin="0" role="progressbar"
                      class="progress progress-success progress-striped active">

                        <div style="width:0%;" class="bar"></div>
                      </div>
                    </td>
                    <td class="start">
                      <button class="btn btn-primary">
                        <i class="icon-upload icon-white"></i>
                        <span>Start</span>
                      </button>
                    </td>
                    <td class="cancel">
                      <button class="btn btn-warning">
                        <i class="icon-ban-circle icon-white"></i>
                        <span>Cancel</span>
                      </button>
                    </td>
                  </tr>
                  <tr class="template-upload fade in">
                    <td class="preview">
                      <span class="fade"></span>
                    </td>
                    <td class="name">
                      <span>README.TXT</span>
                    </td>
                    <td class="size">
                      <span>1.16 KB</span>
                    </td>
                    <td>
                      <div aria-valuenow="0" aria-valuemax="100"
                      aria-valuemin="0" role="progressbar"
                      class="progress progress-success progress-striped active">

                        <div style="width:0%;" class="bar"></div>
                      </div>
                    </td>
                    <td class="start">
                      <button class="btn btn-primary">
                        <i class="icon-upload icon-white"></i>
                        <span>Start</span>
                      </button>
                    </td>
                    <td class="cancel">
                      <button class="btn btn-warning">
                        <i class="icon-ban-circle icon-white"></i>
                        <span>Cancel</span>
                      </button>
                    </td>
                  </tr>
                </tbody>
              </table>
            </br>
          </input>
        </input>
      </span>
    </div>
  </div>
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:49:34+00:00Added an answer on June 6, 2026 at 4:49 am

    Seems like the only way to do it is as fallows

    for(int i = 0; i < Request.Files.Count; i++)
    {
        var file = Request.Files[i];
    
        //file.COMMAND
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my post looks like this: $.post('/ajaxvalidate/1', {nid: nid}, function(data) { I get the Uncaught
I have something that looks like this: POST /o/oauth2/token HTTP/1.1 Host: accounts.google.com Content-Type: application/x-www-form-urlencoded
The Post looks like this. $data = array('icd9' => $icd9, 'cpt' => $cpt, 'session_id'=>
I have some jQuery that looks like this: $.ajax({ type: POST, url: /Customer/CancelSubscription/<%= Model.Customer.Id
i have a customised wordpress post that looks like this when view source. How
POST /api/crmteetimeapi.asmx/Login HTTP/1.1 Host: golffacility.com Content-Type: application/x-www-form-urlencoded Content-Length: length OwnerID=string&UserID=string&Password=string What language do I
Problem 1: My content overlaps itself twice after I post some data back to
My table 'Post' has field: id, name, content, post_id When i create new post,
I receive POST request on my api.php script. The content red using this code:
I followed the example given in this post: How to send data from Matlab

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.