IE 6.0 files become named C:\\directory\\...\\filename,
so I did a fix in upload2.php. Believe this error
cropped up in PHP 4.3.10, but not sure. I looked at the
Perl, but not an expert there and wanted to get this
fixed. This is happening on a *nix servers, not sure if
same problem on Windows servers and not sure about
earlier versions of IE, don't have earlier versions of
IE. Put this code before file and file size get printed
and also change the two lines that have been commented:
// IE 6.0 File Name Fix
// IE 6.0 File Names get upload as
C:\\directory\\...\\filename, so get
//get the actual file name and not file name and directory
// Scott Norman, scott@yourhost.com
if (strpos($_SERVER["HTTP_USER_AGENT"],"MSIE 6.0")){
$TempFileName = explode("\\",$file['name'][$i]);
$FileName = $TempFileName[count($TempFileName)-1];
}
else {
$FileName = $file['name'][$i];
}
echo '<td align="left">' . $FileName . "</td>\n";
//echo '<td align="left">' . $file['name'][$i] ."</td>\n";
echo '<td align="right">' . $file['size'][$i]
."</td></tr>\n";
rename($file['tmp_name'][$i],
'/usr/sites/yourhost.com/www/megaupload/'. $FileName);
Logged In: YES
user_id=958188
forgot last line in last comment,
rename($file['tmp_name'][$i],
'/usr/sites/yourhost.com/www/megaupload/'. $FileName);
//rename($file['tmp_name'][$i],
'/usr/sites/yourhost.com/www/megaupload/'. $file['name'][$i]);