I tried it. It still doesn't work. Here's what the new upload.php looks like:
PHP Code:
<?php
$first_target_path = "/images/";
$target_path = $first_target_path . basename( $_FILES['image']['name']);
$_FILES['image']['tmp_name'];
echo "Temporary File: ".$_FILES['image']['tmp_name']." ... New File: ".$target_path;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target_path))
echo " ... Uploaded: Yes";
else
echo " ... Uploaded: No";
?>
What I get back is:
Code:
HTTP/1.1 200 OK
Date: Sun, 01 Jun 2008 20:36:10 GMT
Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.6
Transfer-Encoding: chunked
Content-Type: text/html
56
Temporary File: /var/tmp/phprRg4mK ... New File: /images/admin~Level1 ... Uploaded: No
0
/var/tmp/php can be followed by any 6 characters. The rest is always the same.
Could you try it out? If it doesn't work, could you try it on your server? If it works on yours but not mine, I'll contact my web host.
EDIT: In the upload.php file, I changed
PHP Code:
$first_target_path = "images/";
to
PHP Code:
$first_target_path = "/images/";
Is that going to change anything?