I want to copy a file on my server. Here is my code. My input file button : ... <?php echo $html->file('Language/image'); ?> ....
this make a following html code : ... <input type="file" name="data[Language][image]" id="LanguageImage" /> ... Controller: $fileData = $this->data['Language']['image']; copy($_FILES[$fileData]['tmp_name'], $folder.$fileName); if i'm not wrong to copy the file i should do something like this: copy($_FILES[' data[Language][image]' ]['tmp_name'], $folder. $fileName); but i'm getting alway a error: Notice: Undefined index: DSC00766.JPG - > this is a file that i upload. data[Language][obrazek] - this is the name of my input file form. Is this a array? How to get a name of the input button ? I mean this : "data[Language] [obrazek]" I want to use it in my $_FILES array Please help me. Does anyone know how to do this? Stan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---