Hello. I am currently working on a CMS for a client of mine, and am
getting a weird error generated by move_uploaded_file: The first
letter of the file I upload. Example:
I upload a file called test.txt, and here is the error generated by
move_upload_file:
t
This happens with all files I try. Here is the code that causes the
error:
if(!empty($this->data)) {
$tmp_name = $this->data['Upload']['file']['tmp_name'];
$upload_filename = Configure::read('StoragePath').basename($this->data
['Upload']['file']['name']);
if(move_uploaded_file($tmp_name, $upload_filename)) {
//this spot isn't reached, it stops at the
move_uploaded_file above.
}
Does anyone know what causes this problem and how I can fix it? Any
input would be greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---