Re: Submit “multipart/form-data” forms with CakePHP / Ajax
Yes Chris, I am using CakePHP 1.1.19.6305 so it does not work... Thank you for the link Adam but it is not the solution I was looking for. I don't want that the user has to change a setting in his browser. It is not going to be easy to use... I am using Ajax to have a tool user friendly, so I don't want to ask for changing setting in the browser... So I don't know yet how to make it work, if someone has another idea ? Thanks. Chris Hartjes a écrit : On Fri, Apr 11, 2008 at 4:40 PM, Pierre MARCOURT [EMAIL PROTECTED] wrote: Thanks Chris, but when I try to use the create method, I have the Fatal error : Call to undefined method FormHelper::create() That link was for CakePHP 1.2. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Submit multipart/form-data forms with CakePHP / Ajax
My point was that Ajax doesn't let you use multipart/data. You'll need to either use something like swfupload or post to an iframe, etc. http://www.railsforum.com/viewtopic.php?id=11430 On Apr 14, 11:29 pm, Pierre MARCOURT [EMAIL PROTECTED] wrote: Yes Chris, I am using CakePHP 1.1.19.6305 so it does not work... Thank you for the link Adam but it is not the solution I was looking for. I don't want that the user has to change a setting in his browser. It is not going to be easy to use... I am using Ajax to have a tool user friendly, so I don't want to ask for changing setting in the browser... So I don't know yet how to make it work, if someone has another idea ? Thanks. Chris Hartjes a écrit : On Fri, Apr 11, 2008 at 4:40 PM, Pierre MARCOURT [EMAIL PROTECTED] wrote: Thanks Chris, but when I try to use the create method, I have the Fatal error : Call to undefined method FormHelper::create() That link was for CakePHP 1.2. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Submit multipart/form-data forms with CakePHP / Ajax
Thanks Adam. You are right, there is no way to make it work without using iFrame or SWFUpload. I have chosen the first option and now it is working well. To make it work, I used this tutorial : http://elmicoxcodes.blogspot.com/2007/03/asynchronous-upload-like-ajax-1.html Adam Royle a écrit : My point was that Ajax doesn't let you use multipart/data. You'll need to either use something like swfupload or post to an iframe, etc. http://www.railsforum.com/viewtopic.php?id=11430 On Apr 14, 11:29 pm, Pierre MARCOURT [EMAIL PROTECTED] wrote: Yes Chris, I am using CakePHP 1.1.19.6305 so it does not work... Thank you for the link Adam but it is not the solution I was looking for. I don't want that the user has to change a setting in his browser. It is not going to be easy to use... I am using Ajax to have a tool user friendly, so I don't want to ask for changing setting in the browser... So I don't know yet how to make it work, if someone has another idea ? Thanks. Chris Hartjes a écrit : On Fri, Apr 11, 2008 at 4:40 PM, Pierre MARCOURT [EMAIL PROTECTED] wrote: Thanks Chris, but when I try to use the create method, I have the Fatal error : Call to undefined method FormHelper::create() That link was for CakePHP 1.2. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Submit “multipart/form-data” forms with CakePHP / Ajax
Hi, Is there a way to submit “multipart/form-data” forms with CakePHP / Ajax ? I can’t manage uploading files this way… It seems that it is not possible due to security restrictions in the browser, is it ? Does someone know a way to manage it (without using IFrames or similar) ? Thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Submit “multipart/form-data” forms with CakePHP / Ajax
On Fri, Apr 11, 2008 at 3:40 PM, Pierre MARCOURT [EMAIL PROTECTED] wrote: Hi, Is there a way to submit multipart/form-data forms with CakePHP / Ajax ? I can't manage uploading files this way... It seems that it is not possible due to security restrictions in the browser, is it ? http://book.cakephp.org/view/182/forms -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Submit “multipart/form-data” forms with CakePHP / Ajax
Thanks Chris, but when I try to use the create method, I have the Fatal error : /Call to undefined method FormHelper::create() / That's why I was trying to submit the file by using : ?php echo $ajax-submit('Upload', array( 'div' = false, 'url' = /users/changepic/, 'enctype' = multipart/form-data, 'update' = 'changepic', 'indicator' = 'loading', 'loading' = document.getElementById('response').innerHTML = 'nbsp;img src=\/img/ajax-loader.gif\/nbsp;';)); ? But it does not work... I can't upload the file, I get Notices : /Uninitialized string offset: 0 / Chris Hartjes a écrit : On Fri, Apr 11, 2008 at 3:40 PM, Pierre MARCOURT [EMAIL PROTECTED] wrote: Hi, Is there a way to submit multipart/form-data forms with CakePHP / Ajax ? I can't manage uploading files this way... It seems that it is not possible due to security restrictions in the browser, is it ? http://book.cakephp.org/view/182/forms --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Submit multipart/form-data forms with CakePHP / Ajax
http://www.captain.at/ajax-file-upload.php On Apr 12, 5:40 am, Pierre MARCOURT [EMAIL PROTECTED] wrote: Hi, Is there a way to submit multipart/form-data forms with CakePHP / Ajax ? I can't manage uploading files this way... It seems that it is not possible due to security restrictions in the browser, is it ? Does someone know a way to manage it (without using IFrames or similar) ? Thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Submit “multipart/form-data” forms with CakePHP / Ajax
On Fri, Apr 11, 2008 at 4:40 PM, Pierre MARCOURT [EMAIL PROTECTED] wrote: Thanks Chris, but when I try to use the create method, I have the Fatal error : Call to undefined method FormHelper::create() That link was for CakePHP 1.2. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---