Hi all
I am trying to upload images to a remote server and it fails all the time.
My $_FILES array looks as follows
[php]
[thumbnail] => Array
(
[name] => 01.jpg
[type] => image/jpeg
[tmp_name] => d:\upload_tmp\p hp5F90.tmp
[error] => 0
[size] => 1268
)
[bigPic] => Array
(
[name] => 01.jpg
[type] => image/jpeg
[tmp_name] => d:\upload_tmp\p hp5F91.tmp
[error] => 0
[size] => 1268
)
[/php]
It contains both pics I want to load and it seems Valid(no error flag)
The upload file is called "http://www.o-shan.com/DBImages/eYkrAkfFHFyNybz Q8Nfn.jpg"
meaning I use the command
[php]if (move_uploaded_ file($_FILES[$fieldName]['tmp_name'], $uploadfile))[/php]
Sending the tempfile to the mentioned location
The condition statement always fails!!!!
(The permissions are fine)
Any ideas?
How can I debug it?
Tnx
Danny
I am trying to upload images to a remote server and it fails all the time.
My $_FILES array looks as follows
[php]
[thumbnail] => Array
(
[name] => 01.jpg
[type] => image/jpeg
[tmp_name] => d:\upload_tmp\p hp5F90.tmp
[error] => 0
[size] => 1268
)
[bigPic] => Array
(
[name] => 01.jpg
[type] => image/jpeg
[tmp_name] => d:\upload_tmp\p hp5F91.tmp
[error] => 0
[size] => 1268
)
[/php]
It contains both pics I want to load and it seems Valid(no error flag)
The upload file is called "http://www.o-shan.com/DBImages/eYkrAkfFHFyNybz Q8Nfn.jpg"
meaning I use the command
[php]if (move_uploaded_ file($_FILES[$fieldName]['tmp_name'], $uploadfile))[/php]
Sending the tempfile to the mentioned location
The condition statement always fails!!!!
(The permissions are fine)
Any ideas?
How can I debug it?
Tnx
Danny
Comment