I think i found problem in WordPress 2.0.2 file upload module. I enable ‘Organize my uploads into month- and year-based folders’ options. So the URL of the uploaded file is with year/month path.
In wp-admin/inline-uploading.php 260 line:
$filename = basename($attachment[‘guid’]);
it’s striping year/month’s path.
So. I modify the code like this:
$title = htmlentities($attachment[‘post_title’], ENT_QUOTES);
$filename = basename($attachment[‘guid’]);
$filepath = $attachment[‘guid’]; // Add this line.
in following lines, modify ab[…] = … href=$FILENAME to href=$filepath.
It’s work correctly now.