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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:32:55+00:00 2026-05-23T04:32:55+00:00

I have a standard file upload script using this script. When the upload is

  • 0

I have a standard file upload script using this script. When the upload is completed, I send back a JSON telling the client that the upload went OK, something like this:

{done: true, error: "No error"}

When I do the upload on Firefox, everything works out smoothly, but on IE9 / Chrome it breaks. IE tells me that I need to download the file, something like this image:

IE9's download dialog

I thought that the issue was the headers submitted to the client and I tried setting the content type to:

  • application/javascript
  • text/javascript

The files are stored properly and the answer is coming back without any corruption, nor in the encoding, or gzipped or anything like it.

Any ideas?

EDIT: Forgot to add the link on the “this” and also, it’s an older version of the plugin, not the current one.

  • 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-23T04:32:56+00:00Added an answer on May 23, 2026 at 4:32 am

    I’ll reply the question myself because I’ve found a solution, at least it works…

    Thing is that when sending a request using an iframe, seems that the content type of the response shouldn’t be either application/json or application/javascript or any other like it. My solution was to send the response as text/html, and do a JSON.parse on the client, and it works like a charm.

    Since I all of my Ajax calls specify that I expect a JSON, it works ok when I make ajax calls as well, because jQuery handles the whole conversion, only thing that worries me is any problem related to performance on the client, but I see no signs of problem just yet…

    Hope that anybody that runs with the problem may find my answer helpful!

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

Sidebar

Related Questions

Many languages have standard repositories where people donate useful libraries that they want others
I have a standard windows server that inherits from the ServiceBase class. On the
I have a bunch of ASP.NET web pages (that have a standard layout) that
I have a web application with a simple file upload requirement (max 1 mb).
I need to upload a file from the client to an asp.net page. The
I am currently using php and ajax file upload to develop a web application.
Using a standard LAMP server with full control, I need to upload an image
I have a Rails 3 application with a pretty standard multipart form that includes
I have a standard .NET windows service written in C#. Can it install itself
I have a standard MOSS 2007 Web Site (MOSS Terminology: Application and a SiteCollection)

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.