that way the file will always upload.
On Apr 28, 12:55 pm, cricket <zijn.digi...@gmail.com> wrote:
> On Thu, Apr 28, 2011 at 2:17 PM, func0der <funco...@live.com> wrote:
> > Can you explain that a bit more precise.
>
> http://php.net/manual/en/function.is-dir.phphttp://www.php.net/manual/en/function.is-writable.php
>
> I usually handle uploads on the controller/component side. Save your
> model record, get the new ID, save the file, update the record. You
> can leave out the initial save in some cases but you said that you're
> using the id for the file name so you'd need 2 saves.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
No comments:
Post a Comment