it looks like you do not set name of the destination file properly. i think if you set only dest. directory the files keep tmp_names.
apache sets response headers based on file extension which in case of tmp_names might not work properly . try doing something like: move_uploaded_file($this->params['form']['Filedata']['tmp_name'], $destination_dir. basename($this->params['form']['Filedata']['name']); or move_uploaded_file($_FILES['userfile']['tmp_name'], $destination_dir. basename($_FILES['userfile']['name'] )) this way you will keep original name of the file which hopefully had proper extension. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
