Just to follow up, I found the following workaround in case anyone else
runs into this.

After the move_uploaded_file call returns true, I do the following:

if (move_uploaded_file($this->params['form']['Filedata']['tmp_name'],
$lg_temp)
{
    copy($lg_temp, $lg_path);
    unlink($lg_temp);

    // Other stuff...
}

So, initially move the file to a temporary file, then copy it to its'
ultimate destination. Weird thing is it only works with a copy, not
with rename and when the temp file is written ($lg_temp) it appears
completely empty.


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

Reply via email to