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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:58:08+00:00 2026-06-18T12:58:08+00:00

I have ajax file uploader in my MVC3 application it’s working absolutely fine in

  • 0

I have ajax file uploader in my MVC3 application it’s working absolutely fine in Firefox and chrome but it’s not working in IE9 and IE8. when i have upload the file it give me wrong file name at server side in IE.

here is my up-loader code

<script type="text/javascript">
    function InitializeUploader() {
            Dname = [];
            var uploader = new qq.FileUploader({
                multiple: true,
                element: document.getElementById('file-uploader'),
                action: '@Url.Action("UploadDocument","Project")',
                debug: true,
                params: { id: $("#Id").val() },
                onSubmit: function (id, fileName) {
                },

                onComplete: function (id, fileName, responseJSON) {
                    alert(responseJSON.fileName);
                    $("#DocumentName").val(responseJSON.fileName);
                    fileSize = responseJSON.size;
                    Dname.push(responseJSON.fileName);
                    type = responseJSON.type;
                }

            });
        }  

</script>
<form method="post" enctype="multipart/form-data" action="" style="margin-left: 4px;
            margin-top: 0px;" id="documentUploadForm">
            <div id="file-uploader">
                <input type="file" id="uplodfile" />
                <input class="button" type="button" value="Upload" id="UploadDocbtn" style="float: right;
                    width: 100px;" /></div>
            </form>

server side Action

 [HttpPost]
  public ActionResult UploadDocument(string qqfile, int id)
  {

     // code for saving File 
  }

when i have run this in IE instead of giving file name in qqfile parameter, it give me file like System.Web.HttpPostedFileWrapper and file is also not save properly.
i am not getting is this browser issue or IE prevent Some script.
so how i can save file using ajax file up loader in IE?

  • 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-18T12:58:10+00:00Added an answer on June 18, 2026 at 12:58 pm

    Actually, IE looks to be working exactly like it should.
    And instead of UploadDocument(string qqfile, int id) you should have UploadDocument(HttpPostedFileWrapper qqfile, int id)
    File should be saved as qqfile.SaveAs("path to file")

    Not clear what file name are you getting now. Possibly that is a result of conversion HttpPostedFile to string and IE does not return some info required for that conversion to return file name instead of original object type.
    Try to do something like this:

     [HttpPost]
      public ActionResult UploadDocument(System.Web.HttpPostedFileWrapper qqfile, int id)
      {
         qqfile.SaveAs("filename");
         // code for saving File 
      }
    

    It should work just fine in all browsers

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

Sidebar

Related Questions

I have recently been working on implementing an ajax based file uploader for my
Hye guys, I have created jquery ajax file uploader, but I have one problem
I have successfully implemented django-ajax-uploader into my project. But I do not know how
I have an ajax.php file in my Wordpress themes folder, and this was working
I have an Ajax contact form that links to a jquery file but for
I have successfully requested to a Basecamp XML file via ajax, but it throws
I have implemented an AJAX file uploader in HTML5 using xHR2 and File api
I've created an ajax file uploader for Django, but each file uploaded takes up
I am using the file uploader jquery plugin in order to have ajax file
so I have a PHP iframe (ajax) file uploader. I would like to display

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.