I have a upload form that enables clients to upload to my website, for 16 of 18 it works perfect,
but for two it never works.
This is an e-mail from one of them:
Uploading still doesn't work (tried Opera and IE),
so I'm mailing my turnfile again.
It seems that the upload session cannot complete (for whatever reason).
Opera displays the amount of data transmitted, and this equals the size of my turnfile.
However, the session does not complete, instead it stops and nothing happens.
After a while the error message "Connection was closed by the server" may appear
(in Opera, IE just continues to wait).
And from the other:
Tried uploading again.
It just does not work for me.
After I hit upload the page times out.
I do have a firewall but I do not have problems uploading to the normal sites.
But alas;
But for 16 it works great!
One has problems downloading though?!?
This is the script:
$gamename is the name of the current game, a parameter used by the
page in defining the $path, there is more surrounding code on
the page but this is what is important.
It doesn't matter if the rest is removed, the problem persists for
those two users.
echo "<form enctype=\"multipart/form-data\" method=\"post\"
action=?php&game=$gamename echo \"game_upload.php\";? >";
echo "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"2048000\">";
echo " File: <input name=\"userfile\" type=\"file\" /><br /> ";
echo " <input type=\"submit\" value=\"Upload\" /> ";
echo " </form> ";
if (@is_uploaded_file($_FILES["userfile"]["tmp_name"]))
{
$new_filename = $_FILES["userfile"]["name"];
$test_file_name=strtolower(substr($new_filename,0,-9));
$test_gamename = strtolower($gamename);
if ($test_file_name == $test_gamename)
{
$path = "../games/$gamename/turnfiles/";
copy($_FILES["userfile"]["tmp_name"], "$path" . $_FILES["userfile"]["name"]);ยจ
}
}
What can it be?
I'm running WinXP and Xitami server, it doesn't matter what size the files have,
they still give these two clients problems.
The page is
http://pbw.ath.cx
You can try to upload in the testgame script, the file should be named "testgame_0001.plr".
Help wanted, I'm stuck!
I've read that the form enctype="multipart/form-data" tag can give problems with some firewalls, but that is the only way to upload files, right? These two clients haven no problem at other sites, so why with mine???
Please don't try uploading or changing the Newbie Galctic Combat page, use the Testgame!!