Re: adding file upload to existing form

2009-07-12 Thread brian
On Sat, Jul 11, 2009 at 6:13 PM, mikemwu...@gmail.com wrote: Ok just getting back to this - print_r $_FILES gives me a syntax error. print_r($_FILES); where is the tmp directory? is that  directly under the webroot /tmp or under cake/app/tmp?  I don't see the file under either of those

Re: adding file upload to existing form

2009-07-11 Thread mike
Ok just getting back to this - print_r $_FILES gives me a syntax error. where is the tmp directory? is that directly under the webroot /tmp or under cake/app/tmp? I don't see the file under either of those directories On May 8, 10:52 pm, Trevor Fitzgerald fitzt...@gmail.com wrote: You

Re: adding file upload to existing form

2009-07-11 Thread Miles J
http://www.milesj.me/resources/script/uploader-plugin --~--~-~--~~~---~--~~ 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

Re: adding file upload to existing form

2009-05-18 Thread Kyle Decot
How about if you show us your form code. On May 17, 10:55 pm, mike mwu...@gmail.com wrote: hmm... but if I add the input type file, when I call the save method in the action, it tries to persist the object to the database and I get a sql error On May 8, 10:52 pm, Trevor Fitzgerald

Re: adding file upload to existing form

2009-05-17 Thread mike
hmm... but if I add the input type file, when I call the save method in the action, it tries to persist the object to the database and I get a sql error On May 8, 10:52 pm, Trevor Fitzgerald fitzt...@gmail.com wrote: You can do it by properly setting the encoding type of the form, then

Re: adding file upload to existing form

2009-05-09 Thread Trevor Fitzgerald
You can do it by properly setting the encoding type of the form, then creating an input with type of file. On the action page, print_r $_FILES to see if it's working correctly. It should have uploaded the file to /tmp. Then use PHP's move_uploaded_file to put it where you want it. Save the new

adding file upload to existing form

2009-05-08 Thread mike
I want to add a file upload to an existing form. I want to save the file somewhere in the file system, and maybe save a reference to it in the database. seems simple enough, but all the examples I've found aren't exactly what I want. I don't want to create a whole different model for the file