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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:43:45+00:00 2026-06-14T18:43:45+00:00

I am using a safecracker form in EE to upload an entry via the

  • 0

I am using a safecracker form in EE to upload an entry via the front-end and i am using jQuery Form Plugin.

The problem is IE tries to download the json response. I know this is an issue that has been brough up a fair bit and i have looked around for a solution that works, but none of them were using EE and jQuery Form Plugin.

Here is the ajax js:

$('#publishForm').ajaxForm({
    dataType: 'json',
    beforeSubmit: function() { 
        // Photo input validation
        var photo = $('#publishForm input[type="file"]').val();
        if( photo == null || photo == '' ) {
            $('#publishForm #photo_error').show();            
            return false;
        }
    },
    success: function(data) {
        if (data.success) {
            console.log('You successfully added a new entry with entry_id ' + data.entry_id);
        }
        else {
            console.log('Failed with the following errors: ' + data.errors.join(', '));

        }
    }
});

I don’t know if there is another paramter i need to put in to fix it or do some hacky fix.

Thanks

  • 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-14T18:43:47+00:00Added an answer on June 14, 2026 at 6:43 pm

    What is you response header’s content-type / mime-type you are responding?
    Is it

    content-type: application/json

    It seems like an IE bug, that if you are using lettercase header settings like

    Content-Type: application/json

    An IE client downloads the response.

    Example response header:

        HTTP/1.1 200 OK
        Date: Fri, 23 Nov 2012 19:08:26 GMT
        content-type: application/json
        Access-Control-Allow-Origin: *
        Access-Control-Request-Method: POST, GET, OPTIONS
        Cache-Control: o-cache
        Expires: -1
        Access-Control-Request-Headers: X-PINGOTHER
        Connection: close
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using safecracker in expressionengine to display a form to front end users. User
I'm using ExpressionEngine and SafeCracker along with Ajax (plugin: jquery.form.js - http://jquery.malsup.com/form/ ). Best
Hi I am making a form in expression engine using safecracker and one of
Can we use 2 or more textarea fields using SafeCracker? {exp:safecracker channel=letters_to_editor return=site/thank_you entry_id={segment_3}
Using mercurial, I've run into an odd problem where a line from one committer
Using MVC2 I have an AJAX form which is posting to a bound model.
I am using SafeCracker to create some entries on a site and when the
Using jQuery, how do I get the value from a textbox and then load
Using the opencart image manager how would I set the upload to automatically remove:
Using jQuery, one can easily find out whether a particular element is visible using

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.