1

I have the following problem:

On a website I'm coding for a client I have a form where you can upload images (up to 5, seperate file-input elements (so no problem caused by a flash / javascript solution)). But sometimes the upload fails directly (nearly instantly the "Page cannot be displayed"-page is shown) or the request does not contain the files.

This is not an issue of file-size (as it happens sometimes, no matter if the files are larger (~2-3MB) or really small (150kB)) or request timeout (as the upload fails directly and not always - but too often ;-)).

Another weird thing: I tried to analyze the whole thing using Fiddler. But while using Fiddler the problem simply does not occur.

Any ideas?

Tested in IE9/10 on Win7/8
Chrome, FF etc. work fine, of course ;-)

/edit: I use a really simple test script (fails like the regular webapp)

<?='<!DOCTYPE html>'?>
<html>
<head>
    <title>Upload Test</title>
</head>
<body>
    <form action="http://www.site.com/upl-test/index.php" method="post"     enctype="multipart/form-data">
        <input type="file" name="img_file0" />
        <input type="file" name="img_file1" />
        <input type="file" name="img_file2" />
        <input type="file" name="img_file3" />
        <input type="file" name="img_file4" />
        <input type="submit" name="submit_btn" value="Upload" />
    </form>
    <?php 
    if(!empty($_FILES)){
        echo '<hr /><pre>';
        var_dump($_FILES);
        echo '</pre>';
    }
    ?>
</body>
</html>
4

0 に答える 0