Hmmmmm! I did compare the files, and there was one difference that I didnt document... again(!!!)... Unfortunately it does not affect you in any way... It only makes the image names different...
REPLACE:
if ($direct_upload) {
$sql = "INSERT INTO ".IMAGES_TABLE."
(cat_id, user_id, image_name, image_description, image_keywords, image_date, image_active, image_media_file, image_thumb_file, image_download_url, image_allow_comments".$additional_field_sql.")
VALUES
($cat_id, ".$user_info['user_id'].", '$image_name', '$image_description', '$image_keywords', $current_time, $image_active, '$new_name', '$new_thumb_name', '$image_download_url', $image_allow_comments".$additional_value_sql.")";
BY:
$imgname = ($fileext!="")?"$image_name $fileext":$image_name;
if ($direct_upload) {
$sql = "INSERT INTO ".IMAGES_TABLE."
(cat_id, user_id, image_name, image_description, image_keywords, image_date, image_active, image_media_file, image_thumb_file, image_download_url, image_allow_comments".$additional_field_sql.")
VALUES
($cat_id, ".$user_info['user_id'].", '$imgname', '$image_description', '$image_keywords', $current_time, $image_active, '$new_name', '$new_thumb_name', '$image_download_url', $image_allow_comments".$additional_value_sql.")";
I'm not sure about the possibility of conflict with the "Image Annotation MOD", you are using? I don't have that... Another thing is what I have done, is that I don't use those remote upload files at all. (I have commented thos away as well)
When I'll have the time, I'll have to install a clean 4images just for the mod development purposes... It's a bit difficult to see things when there are many overlapping MODs.
I will include my member.html, though it has some code for my MOD for EXIF and automatic rotation... But it could be of help to see the differences in that whole critical uploading section beginning from:
"if ($action == "uploadimage" || $action=="multiuploadimage") {"
So you still have the same problem, that the first image is uploaded correctly, but the second one, etc ain't? I had this when I was developing this as well... And atleast one time I had to log off the current section, and to try again... MAybe it stores some of the data into cache... But some problem there seems to be anyhow.
I'll get back to it, now I have a vacation... and I'll be away for a while...
[Modified] 26.7. removed the attachment, as it had way too much in there. The correct version is attached in the main mail.