11-11-2008, 06:15 PM
|
#1 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
Uploading problem
Hi, why does this exception get thrown?
PHP Code:
if(!move_uploaded_file($_FILES[$this->form_inputName]['tmp_name'], $this->image_tmpPath . $this->file_name)) { throw new Exception('An error occured when uploading your file.'); }
I mean, am I doing something wrong? Or is it just my variables that probably isn't correct?
Edit:
Got this now:
Code:
Warning: move_uploaded_file(images/2/tmp/23aede79f5b4c7aa2a97d7af38023893.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\wamp\www\test\Upload.php on line 142
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\wamp\tmp\phpABF.tmp' to 'images/2/tmp/23aede79f5b4c7aa2a97d7af38023893.jpg' in C:\wamp\www\test\Upload.php on line 142
__________________
|
|
|
|