For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2007 > Problem fileupload









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem fileupload
Marcel Molenaar

2007-05-03, 6:57 pm

I have a strange problem with a very simple fileupload script. It works
fine, file is uploaded to test20.php but when i click the browsers back
button and choose other file to upload only a blank page shows up after
clicking submit.

test10.php

<form action="test20.php" method="post" enctype="multipart/form-data"
id="form1">
<input type="file" name="upload" />
<input type="submit" name="Submit" value="Submit" />
</form>

test20.php

<?php
echo $_FILES['upload']['name'];
?>

Platform is Windows 2003 Server Web Edition Service Pack 1 and PHP version
is 5.2.0 running as ISAPI. The site is a https environment.

Strange thing is that i have exactly the same files on another server (linux
and PHP 4.4.6) at www.mediaquest.nl/test10.php and there it is running fine.

Anybody any idea??? Thanks in advance!!!

Marcel



shimmyshack

2007-05-03, 6:57 pm

On May 3, 3:52 pm, "Marcel Molenaar" <afraidofs...@spam.nl> wrote:
> I have a strange problem with a very simple fileupload script. It works
> fine, file is uploaded to test20.php but when i click the browsers back
> button and choose other file to upload only a blank page shows up after
> clicking submit.
>
> test10.php
>
> <form action="test20.php" method="post" enctype="multipart/form-data"
> id="form1">
> <input type="file" name="upload" />
> <input type="submit" name="Submit" value="Submit" />
> </form>
>
> test20.php
>
> <?php
> echo $_FILES['upload']['name'];
> ?>
>
> Platform is Windows 2003 Server Web Edition Service Pack 1 and PHP version
> is 5.2.0 running as ISAPI. The site is a https environment.
>
> Strange thing is that i have exactly the same files on another server (linux
> and PHP 4.4.6) atwww.mediaquest.nl/test10.phpand there it is running fine.
>
> Anybody any idea??? Thanks in advance!!!
>
> Marcel


by blank page do you mean no response body, or an error, and what are
the headers sent by the server for the blank page, use fiddlertool to
find out
is there any php in test10.php? if( $_POST ) and so on?

Marcel Molenaar

2007-05-07, 6:58 pm


"Marcel Molenaar" <afraidofspam@spam.nl> wrote in message
news:e2c50$4639f72b$d969db07$9674@cache2
0.multikabel.net...
>I have a strange problem with a very simple fileupload script. It works
>fine, file is uploaded to test20.php but when i click the browsers back
>button and choose other file to upload only a blank page shows up after
>clicking submit.
>
> test10.php
>
> <form action="test20.php" method="post" enctype="multipart/form-data"
> id="form1">
> <input type="file" name="upload" />
> <input type="submit" name="Submit" value="Submit" />
> </form>
>
> test20.php
>
> <?php
> echo $_FILES['upload']['name'];
> ?>
>
> Platform is Windows 2003 Server Web Edition Service Pack 1 and PHP version
> is 5.2.0 running as ISAPI. The site is a https environment.
>
> Strange thing is that i have exactly the same files on another server
> (linux and PHP 4.4.6) at www.mediaquest.nl/test10.php and there it is
> running fine.
>
> Anybody any idea??? Thanks in advance!!!
>
> Marcel
>
>
>


Now here is the solution:

The solution is to set the SSLAlwaysNegoClientCert Metabase Property to TRUE
in the IIS metadatabase xml file located at C:\WINDOWS\system32\inetsrv ->
MetaBase.xml


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com