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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:56:54+00:00 2026-06-09T14:56:54+00:00

I am using Uploadify v3.1 for MVC3 C#. My cshtml code is <div class=container_24>

  • 0

I am using Uploadify v3.1 for MVC3 C#.

My cshtml code is

<div class="container_24">
    <input type="file" name="file_upload" id="file_upload" />
</div>

My js code is

$(document).ready(function () {
    $('#file_upload').uploadify({
        'method': 'post',
        'swf': '../../Scripts/uploadify-v3.1/uploadify.swf',
        'uploader': 'DashBoard/UploadFile'
    });
});

And the controller code is

[HttpPost]
        public ActionResult UploadFile(HttpPostedFileBase file)
        {
            // Verify that the user selected a file
            if (file != null && file.ContentLength > 0)
            {
                // extract only the fielname
                var fileName = Path.GetFileName(file.FileName);
                // store the file inside ~/App_Data/uploads folder
                var path = Path.Combine(Server.MapPath("~/Uploads"), fileName);
                file.SaveAs(path);
            }
            // redirect back to the index action to show the form once again
            return RedirectToAction("Index", "Home");
        }

Now when i click the upload button it show two errors, sometime it show IO error and sometime it show HTTP 404 error for some file. what is wrong ? help me please ?

  • 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-09T14:56:55+00:00Added an answer on June 9, 2026 at 2:56 pm

    What size files are you uploading? Everything over 1MB or anything under?

    Also what sort of 404 are you getting? If it’s a 404.13 (file size error) then you’re having the same problem I had. Good news. Because I fixed my problem. 🙂

    If you’re not sure what type the 404 is (Firebug will tell you), check your Windows event log and look in the “Application” log for a warning that looks like this:

    • Event code: 3004
    • Event message: Post size exceeded allowed limits.

    If you’ve got both of these, then the problem is that IIS (which I’m assuming you’re using) is not set up to allow big enough content requests.

    Firstly, put this in your web config:

     <system.webServer>
        <security>
          <requestFiltering>
            <!-- maxAllowedContentLength = bytes -->
            <requestLimits maxAllowedContentLength="100000000" />
          </requestFiltering>
        </security>
      </system.webServer>
    

    Then this, in “system.web”:

    <!-- maxRequestLength = kilobytes. this value should be smaller than maxAllowedContentLength for the sake of error capture -->    
    <httpRuntime maxRequestLength="153600" executionTimeout="900" />
    

    Please pay attention to the notes provided – maxAllowedContentLength is in BYTES and maxRequestLength in KILOBYTES – big difference.

    The maxAllowedContentLength value I provided will let you up load anything upto around 95MB.

    This solved my version of this problem anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Imagine this simple form for uploading a file: <form action=upload enctype=multipart/form-data> <input type=text name=name/>
I am using uploadify and the file name retrieved from $_FILES[fileData][name] on server side
I am uploading a file in my ASP.NET MVC application using Uploadify. Controller: public
I would like to do below validations for single file uploaded using jQuery Uploadify
I'm using Rails 3.1 with Paperclip and trying to implement Uploadify for multiple file
I have problems returning JSON data after using Uploadify. This code works in Firefox,
I am using 'Uploadify' JQuery plugin for file upload. I read the documentation and
I am using .NET MVC3 along with JQuery uploadify plugin and I seem to
I'm using uploadify to do file uploads on a form. The files are required
I'm using uploadify (a jQuery uploading) script, which has basically a PHP file at

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.