Wednesday, January 23, 2013

Re: Need help with file uploads

The files were not being accepted. Solved the problem thanks! Just in case anyone has the same problem.

You cannot serialize file upload forms via jQuery and pass them to the controller. 

On Wednesday, January 23, 2013 6:15:59 PM UTC-5, ibejohn818 wrote:
Check your PHP configuration and ensure that your file upload settings are appropriate for the use-case.

Also, print out the _FILES array to also check to see if PHP is accepting  your upload.


On Jan 23, 2013, at 3:09 PM, Shahruk Khan <shahru...@gmail.com> wrote:

Nope. debug($this->data) still has no other info.

On Wednesday, January 23, 2013 1:53:27 PM UTC-5, cricket wrote:
On Wed, Jan 23, 2013 at 11:10 AM, Shahruk Khan <shahru...@gmail.com> wrote:
> I followed this tutorial:
> http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper%3a%3afile
>
> My View / Form
> <?php echo $this->Form->create("User", array("enctype" =>
> "multipart/form-data")); ?>

echo $this->Form->create('User', array('type' => 'file'));

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake...@googlegroups.com.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: