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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:29:29+00:00 2026-05-28T07:29:29+00:00

I am having a problem with CakePHP 1.3. I’m using a jQuery plugin for

  • 0

I am having a problem with CakePHP 1.3. I’m using a jQuery plugin for uploading images, and works well only in Firefox. When I get a picture in Google Chrome, the image is uploaded, but at the end of the request is deleted. It is very strange. Then I started to debug, and it turns out after saving the image, I’m saving the image name in session, like this $this->Session->write("tmp_img_name, $ new_img_path), which is causing the problem to me because when I comment this line, image uploading is not deleted. it’s very strange that this line is erased images.

When I set in core.php debug = 0 this problem does not happen again, even if I uncomment the line causing the problem.

The plugin I’m using is the one on the following url http://www.phpletter.com/Our-Projects/AjaxFileUpload/

Thanks in advance.

  • 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-28T07:29:30+00:00Added an answer on May 28, 2026 at 7:29 am

    You should really turn debug off for ajax actions that return any formatted data like json, as any text from a warning/error/debug message will mess up the json data format and things will start to fail. This is why you are not seeing the problem with debug set to 0.

    I have this in my AppController::beforeFilter():

    if ($this->request->is('ajax')) {
        Configure::write('debug', 0);
    }
    

    As for the session stuff, we really need to see more related code.

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

Sidebar

Related Questions

I'm having problem with Rails plugin attachment_fu . On every upload, I get validation
Im having problem's adding map markers to gmaps using jquery. Here is my code
We having been using multiple webservers for our cakephp application, problem is there are
Having problem with the middle Div not expanding to the width http://acs.graphicsmayhem.com/images/middiv.jpg Ok, how
I am having problem in getting reference of Ajax control extender using $find() or
I'm having problem restricting a query in mdx, using except function at where clause.
I am having this problem with one of my cakePHP applications. My application displays
Having problem with this bit of code qith jQuery. it should pick the values
I am having a really frustrating problem in CakePHP where a space keeps coming
I’m having a spot of problem with CakePHP 2.0.2. I’m wanting to create an

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.