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
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
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
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
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
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
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