Re: file upload with ajax

2010-03-04 Thread Miles J
I usually save the uploaded image paths into the session and when the post is being saved, I just pass those along as column values. If the post save fails, you unlink() the images. On Mar 4, 12:49 pm, donnerbeil wrote: > Thank you all. Didn't know that upload using XMLhttpRequest is > impossible

Re: file upload with ajax

2010-03-04 Thread donnerbeil
Thank you all. Didn't know that upload using XMLhttpRequest is impossible. So I propably have to use something else. I want to provide a editor for forum posts, where you can upload images in background. I will try SWFUpload or the iframe, as this would be the easiest way but also the ugliest. Ano

Re: file upload with ajax

2010-03-04 Thread martinp
This might be of interest: http://www.zurb.com/playground/ajax_upload On Mar 4, 7:12 am, WebRenovator wrote: > My apologies. I was using SWFUploader to do the multiple file uploads. > > On Mar 3, 7:54 pm, Miles J wrote: > > > @WebRenovator - Its impossible to upload files through XMLHttpRequest

Re: file upload with ajax

2010-03-03 Thread WebRenovator
My apologies. I was using SWFUploader to do the multiple file uploads. On Mar 3, 7:54 pm, Miles J wrote: > @WebRenovator - Its impossible to upload files through XMLHttpRequest > like Andy said, im not sure what you think you are referring to. > > On Mar 3, 7:33 am, Andy Dirnberger wrote: > > >

Re: file upload with ajax

2010-03-03 Thread Miles J
@WebRenovator - Its impossible to upload files through XMLHttpRequest like Andy said, im not sure what you think you are referring to. On Mar 3, 7:33 am, Andy Dirnberger wrote: > XMLHttpRequest cannot upload files. The two ways to give the > appearance of Ajax are with Flash (e.g., Uploadify, SWF

Re: file upload with ajax

2010-03-03 Thread Andy Dirnberger
XMLHttpRequest cannot upload files. The two ways to give the appearance of Ajax are with Flash (e.g., Uploadify, SWFUpload, etc.) and with an iframe. Either way, only the data from $_POST ends up in $this->data. To access any uploaded files, you need to use $_FILES. Check out the new CakePHP Ques

Re: file upload with ajax

2010-03-02 Thread WebRenovator
dd' > >         ) > >     ) > > )); > > ?> > >         > >                 > >         >                 echo > > $form->input('Image.file',array('type'=>'file','label'=>__('upload &

Re: file upload with ajax

2010-03-02 Thread Miles J
            >                         echo > $form->input('Image.file',array('type'=>'file','label'=>__('upload > > image',true))); >                 echo $form->input('Image.title',array('label'=&

file upload with ajax

2010-03-02 Thread donnerbeil
echo $form->end(__('upload',true)); ?> Instead of $form->end I also tried with $ajax->submit (and $form- >create(), because ajax->submit and $ajax->form together cause a known issue) I couldn't find much about file upload with

Re: File upload with AJAX

2007-01-16 Thread Dom.
Hi, Have you test cake-timer? Dom. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [E

RE: File upload with AJAX

2007-01-03 Thread Christian Winther [cwi.dk]
I got a working ajax uploader using YUI http://www.cwi.dk/upload.php -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ámon Tamás Sent: 3. januar 2007 20:40 To: cake-php@googlegroups.com Subject: Re: File upload with AJAX Felix Geisendörfer

Re: File upload with AJAX

2007-01-03 Thread Ámon Tamás
Felix Geisendörfer wrote: Hey, I'm currently doing a little series on JavaScript programming on my blog and I think this would be an excellent tutorial for one of my upcoming posts. So if you can wait I might

Re: File upload with AJAX

2007-01-03 Thread DJ Spark
Felix, show us you jNinja skills by doing that in an one-liner ;} happy with jQuery spark On 1/3/07, Felix Geisendörfer <[EMAIL PROTECTED]> wrote: Hey, I'm currently doing a little series on JavaScript programming on my blog and I think this would be an excellent tutorial for one of my upcom

Re: File upload with AJAX

2007-01-03 Thread Felix Geisendörfer
Hey, I'm currently doing a little series on JavaScript programming on my blog and I think this would be an excellent tutorial for one of my upcoming posts. So if you can wait I might write up an excellent how-to

Re: File upload with AJAX

2007-01-03 Thread Ámon Tamás
Marcelo Linhares wrote: I used iframe, I was the only solution that I found. I know this is the only solution (because security), but how You can send the file to the iframe and how get back the results with javascript (for example with prototye)? []s Marcelo Linhares 2007/1/3, Erich C

Re: File upload with AJAX

2007-01-03 Thread Marcelo Linhares
I used iframe, I was the only solution that I found. []s Marcelo Linhares 2007/1/3, Erich C. Beyrent <[EMAIL PROTECTED]>: Maybe this will help: http://seemysites.net/projFolder/uploader/ Ámon Tamás wrote: > > [EMAIL PROTECTED] wrote: >> >> AJAX itself can't handle file upload. It's a big n

Re: File upload with AJAX

2007-01-03 Thread Erich C. Beyrent
Maybe this will help: http://seemysites.net/projFolder/uploader/ Ámon Tamás wrote: [EMAIL PROTECTED] wrote: AJAX itself can't handle file upload. It's a big no no apparently and a security hazard if it was allowed...however, what goes on is there is an iframe and the file upload takes plac

Re: File upload with AJAX

2007-01-03 Thread Ámon Tamás
[EMAIL PROTECTED] wrote: AJAX itself can't handle file upload. It's a big no no apparently and a security hazard if it was allowed...however, what goes on is there is an iframe and the file upload takes place there within that form. Ok. I know, this is not an easy thing, but I like a site to

Re: File upload with AJAX

2007-01-03 Thread [EMAIL PROTECTED]
AJAX itself can't handle file upload. It's a big no no apparently and a security hazard if it was allowed...however, what goes on is there is an iframe and the file upload takes place there within that form. There are several tutorials on this, TJSinglton linked one there, here's another: http:/

Re: File upload with AJAX

2007-01-03 Thread TJSingleton
Ámon Tamás wrote: There is any way in cake php for ajax file uploading? Check out: http://www.thinkingphp.org/2006/04/27/an-ajax-file-upload-progressbar/ http://thinkingphp.org/demos/cake-timer/ I like to make a form where I have a file uploading field. If upload a file I like to put the im

File upload with AJAX

2007-01-02 Thread Ámon Tamás
Hello, There is any way in cake php for ajax file uploading? I like to make a form where I have a file uploading field. If upload a file I like to put the image to the page and an other file upload field. Where can I find solution for it? -- Ámon Tamás http://linkfelho.amon.hu --~--~--