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

  • Home
  • SEARCH
  • 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 8463753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:32:35+00:00 2026-06-10T14:32:35+00:00

I have created a simple file upload page. To keep it really simple, I

  • 0

I have created a simple file upload page. To keep it really simple, I refrained from using iFrames to include the file inputs. Thus, the file submission triggers a page reload because the form is submitted. This is needed in order to display the uploaded file names on the page. The file names are fetched via AJAX calls in jQuery.

Everything works like a charm in Chrome, Firefox, Opera, Safari on mac and windows (I have not tested Linux but I guess it works too)

My issue is that in IE9, when I open the browser, the ajax call is made and the data is displayed. But once a file has been uploaded this stops working.

In order to be sure, the server was started in debug mode and I set a break point in the service method. The break point is reached as long as no file has been uploaded.

As soon as a file has been uploaded (which works, by the way) the break point is not reached anymore. IE9 does not call the service method and the data does not change anymore. Even navigating to another page (google.com) and loading the page again by writing the URL does not help.

This is the weirdest behavior I have seen so far in a browser: the form is submitted and the file is sent, but no subsequent ajax calls are performed and the page does not change. But the javascript behaves as if the AJAX call was made. It is just that the server is not involved anymore.

this is the form:

    <form method="post" action="${pageContext.request.contextPath}/services/prepop/upload/csv"
          id="fileUploadForm" enctype="multipart/form-data">
       <div class="file-upload">
             <input id="uploadedFile"
                    type="file"
                    name="uploadedFile"
                    onchange="submit()"/>
       </div>
       <input type="hidden" name="formId" value='{{formId}}'/>
       <input type="hidden" name="contentId" value='{{id}}'/>
       <input type="hidden" name="page" value='upload'/>
    </form>

this is the ajax call

   app.log( "getting the form files" );
   $.ajax( {
      url:"${pageContext.request.contextPath}/services/jsonrest/prepop/list",
      type:"GET",
      async:true,
      data:[
         {name:"formId", value:formId}
      ],
      success:function ( prepopContentList ) {
         app.log( "the content file list was fetched with " + prepopContentList.length + " entries" );
         upload.populateEntryList( prepopContentList, $( "#fileUploadList" ) );
      }
   } );

the strangest thing is that the log entries appear in the log but always with the same values. Looking at the content in debug mode confirms this. The array is always the same.

There is no Comet enabled. It is a plain jQuery app.

If anyone has a clue.

  • 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-10T14:32:37+00:00Added an answer on June 10, 2026 at 2:32 pm

    It looks like IE9 tries to be smart about caching and caches everything that is not explicitly set to be expired.

    The solution for me was to change the Response (I use Jersey) to be expired upon arrival. Here’s how that works.

    Normal response:

    return Response.ok( jsForms.toJSONString(), MediaType.APPLICATION_JSON_TYPE ).build();
    

    Expired response:

    return Response.ok( jsForms.toJSONString(), MediaType.APPLICATION_JSON_TYPE ).expires( new Date( 1000 ) ).build();
    

    notice the addition of expires( new Date( 1000 ) )

    that did the trick.

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

Sidebar

Related Questions

I have created a page to upload a file (single) to my server :
How to manually create Friendly URLs? (PHP) So I have created simple php file
Could someone help me on this, I have created simple web services using axis2
I have created this simple program to learn shared_ptr using namespace std; #define Yes
I'm trying to create a simple file upload form for my website. I'm using
i have this page (very simple to show what i need) to upload flv
I am trying to implement file upload functionality on my site. I have created
I have created a php file that exports data to an excel file using
I have used following code to create a simple PDF file. It executes fine
I am new to Repository concept and get some questions. I have created simple

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.