Re: File upload stopped working

2009-02-04 Thread Günther Theilen
djiize wrote: > - the form and the field have the same name "ImportFile" => conflict ? That did it. I renamed the field to "import" and it worked. The really strange thing is that it _has_ worked with "ImportFile". Thanks a lot! Regards Guenther --~--~-~--~~~---~--~

Re: File upload stopped working

2009-02-04 Thread djiize
Can you post the output of the FormHelper ? Here or better on the Cakebin ? I see 2 things: - the names "ImportFile" with a caps in the middle => will often produce "import_file" variable - the form and the field have the same name "ImportFile" => conflict ? On 4 fév, 12:30, Günther Theilen wro

Re: File upload stopped working

2009-02-04 Thread Günther Theilen
I used the form helper and it doesn't change anything. My form looks like this: $form->create('ImportFile', array('action' => 'add', 'type' => 'file')); $form->file('ImportFile'); ?> $form->end(); Which should and did work. But now I get something like this in $_FILES: Array ( [data] =>

Re: File upload stopped working

2009-02-04 Thread djiize
maybe see output of the Form Helper in general I think it's see "data[model][field]" here? you need to format your names this way to automatically populate $this->data var maybe just data[field] suffice, but I don't know as I always use FormHelper, you can try yourself On 4 fév, 08:05, Günther

File upload stopped working

2009-02-03 Thread Günther Theilen
Hi, I'm a little bit lost here, maybe someone can help. A file upload on one of my sites (Cake 1.2) "suddenly" stopped working. The method isn't used very often so I can't exactly say since when it doesn't work anymore but I know that my hoster has moved to a new data center and I suspect that