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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:14:54+00:00 2026-06-15T22:14:54+00:00

Using uploadify to auto submit a users files, in my controller method Request.Files[Name] keeps

  • 0

Using uploadify to auto submit a users files, in my controller method Request.Files[“Name”] keeps returning null but request.form isn’t null, I can see the file in request.form when I set a breakpoint and debug it. Am I missing something? I’m testing this on mvc2 but i plan on using it on mvc4.

<link href="../../Content/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="../../Scripts/jquery.uploadify.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $('#file_upload').uploadify({
            'swf': '/Content/uploadify.swf',
            'uploader': '/Home/UploadFile',
            'auto': true


            // Your options here
        });
    });
</script>
 </head>
   <body>           
   <%--<% using (Html.BeginForm("UploadFile", "Home", FormMethod.Post,
 new { enctype = "multipart/form-data" }))
 { %>--%>
  <input type="file" name="file_upload" id="file_upload" style="margin-bottom: 0px" />

 <%-- <% } %>--%>

Controller Method:

    [HttpPost]
    public ActionResult UploadFile(HttpPostedFileBase file)
    {           
        var theFile = Request.Files["file_upload"];
        return Json("Success", JsonRequestBehavior.AllowGet);
    }

If I add a submit button and then submit it it will work though. I need to be auto though without a submit button.

  • 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-15T22:14:55+00:00Added an answer on June 15, 2026 at 10:14 pm

    IIRC Uploadify uses fileData as parameter. So:

    var theFile = Request.Files["fileData"];
    

    or even better:

    [HttpPost]
    public ActionResult UploadFile(HttpPostedFileBase fileData)
    {          
        // The fileData parameter should normally contain the uploaded file
        // so you don't need to be looking for it in Request.Files
        return Json("Success", JsonRequestBehavior.AllowGet);
    }
    

    Of course if you are not happy with this name you could always customize it using the fileObjName setting.

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

Sidebar

Related Questions

I am using Uploadify to upload files. Problem is, I need to inform users
I have a plugin for uploading files using jquery uploadify. After calling a method
I am uploading a file in my ASP.NET MVC application using Uploadify. Controller: public
Uploadify works for Visual Studio but not for IIS 7 (same machines), using Forms
I am using Uploadify and am having problems submitting a form to uploaded1.php after
I am using uploadify to allow images upload in a form. The issue i'm
I am using uploadify and my problem is that the files are not uploading.
I am using uploadify for uploading the files with PHP 5.3.3 and Apache 2.2.16
in my application i upload files using uploadify. everythings works perfect with standart unicode
I want to upload video using uploadify newest version, but I failed. My code:

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.