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 6925009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:44:04+00:00 2026-05-27T10:44:04+00:00

I am currently using the file upload helper that comes with Microsoft.WebHelpers like this

  • 0

I am currently using the file upload helper that comes with Microsoft.WebHelpers like this

@FileUpload.GetHtml(initialNumberOfFiles: 1, allowMoreFilesToBeAdded: true, includeFormTag: false, uploadText: "Upload")

This correctly gives me a upload box but I am having two problems with this that I cannot seem to find an answer for.

The first problem is the box does not display the filename correctly if I have a long path.

The second problem is that I can add a bunch of new files but there does not seem to be a remove option that can be turned on.

I need to find a good tool to facilitate file uploads that will give me these options and seamlessly integrate with asp.net mvc3 or figure out a way to do this with the upload tool.

  • 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-05-27T10:44:05+00:00Added an answer on May 27, 2026 at 10:44 am

    I am not sure what current tools are as far as nuGet packages go. However, I know that you can roll your own pretty easily.

    In view:

    @using (Html.BeginForm("ActionName", "ControllerName", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
    ...
    <input type="file" id="files" name="files" size="60" /><input type="button">
    ...
    <input type="submit">
    }
    <script>function(){ //make button add another input field with id="files"}
    </script>
    

    Note: new { enctype = “multipart/form-data” } is required to send files to the controller from a form.

    In Action:

    [HttpPost]
    public ActionResult ActionName(IEnumerable<HttpPostedFileBase> files)
    {
        foreach(HttpPostedFileBase uploadFile in files)
        {
             //work with uploadFile
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using Valums JQuery File Upload plugin. The plugin is very convenient
I want to use progress bar to show file upload progress. I'm currently using
I am currently using php and ajax file upload to develop a web application.
I am currently using the Zend Framework and have an upload file form. An
I am currently using symfony 1.4 and would like to allow users to upload
I want to upload a file in struts1 application. Currently the implementation is using
I'm using a flash/ajax file upload in php based on this site - http://blog.codeville.net/2008/11/24/jquery-ajax-uploader-plugin-with-progress-bar/
I'm currently working on an AJAX file upload script, which works like a charm
Using the HTML5 File API to upload files, I am currently using some hardcoded
I have created a function to upload a file using this library as follows:

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.