Re: can't upload

2007-11-30 Thread Dardo Sordi Bogado
Since you are using CakePHP 1.2, I suggest you to try the UploadBehaviour. There should be an article in the bakery. 2007/11/30, Dilbert [EMAIL PROTECTED]: On 30 Nov, 18:35, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Check the encoding on the form, it must be multipart/form-data. ?php

Re: can't upload

2007-11-30 Thread Dilbert
On 30 Nov, 18:35, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Check the encoding on the form, it must be multipart/form-data. ?php echo $form-create('Model', array('type' = 'file')); ? also check what is in ?php pr($_FILES); ? 2007/11/30, Christopher E. Franklin, Sr. [EMAIL PROTECTED]:

Re: can't upload

2007-11-30 Thread Dardo Sordi Bogado
Check the encoding on the form, it must be multipart/form-data. ?php echo $form-create('Model', array('type' = 'file')); ? also check what is in ?php pr($_FILES); ? 2007/11/30, Christopher E. Franklin, Sr. [EMAIL PROTECTED]: Well, I guess my first question would be, are you using a browse

Re: can't upload

2007-11-30 Thread Christopher E. Franklin, Sr.
Well, I guess my first question would be, are you using a browse control to browse for the image on your comp or is it already on the hard drive of the server some where? Second, can you post the upload function as well? On Nov 30, 8:34 am, Dilbert [EMAIL PROTECTED] wrote: I have an article

can't upload

2007-11-30 Thread Dilbert
I have an article model with an image field(I don't want to create another model). This is the code for admin_add function admin_add() { if (!empty($this-data)) { $this-cleanUpFields(); $this-Article-create(); if ($this-Article-save($this-data)) { if