Wednesday, October 27, 2010

RE: AJAX Uploader

All my responses are JSON sent from the controller back to the browser for
the whole site.
Just when I upload an image if I try to return JSON (image name, image
count, image title and so on) I get the pop up try to open this file with
message box. So after a little checking it appears other have had problems
with JSON responses after ajax uploads so that's why I was wondering if
anyone had a solution or ideas...My bad Valums upload plugin is what im
using, not Malsup as stated earlier.

Thanks,

Dave

-----Original Message-----
From: cricket [mailto:zijn.digital@gmail.com]
Sent: October-27-10 10:02 PM
To: cake-php@googlegroups.com
Subject: Re: AJAX Uploader

On Wed, Oct 27, 2010 at 7:09 PM, Dave Maharaj <me@davemaharaj.com> wrote:
> Has anyone come across a simple file uploader that can return an JSON
> response?
>
> I am using Malsup uploader and it works fine, but instead of just return
the
> image uploaded I need image count and other variables returned from the
> server in JSON format so I can do other things.

Are you referring to his JQuery Form plugin? That's client side. If
you want a JSON response returned to the browser, just do so in
whatever controller method is accepting the file.

Check out the new CakePHP Questions site http://cakeqs.org and help others
with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: