...">

IIS 7.5 is losing $ _POST data?

I have the following form:

<form method="post" action="./action.php?a=create" enctype="multipart/form-data">
    <input name="formType" type="hidden" value="file" required />
    <input name="formParent" type="hidden" value="<?php echo $parentID; ?>" required />
    <table class="fixed">
        <tr>
            <td>
                <p>Display Name</p>
            </td>
            <td>
                <input name="formName" type="text" placeholder="Enter File Name" autofocus autocomplete="off" required />
            </td>
        </tr>
        <tr>
            <td>
                <p>Select a File</p>
            </td>
            <td>
                <input name="formFile" type="file" placeholder="Select a File" required />
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <button class="confirm btn-warning" type="submit">Submit</button>
            </td>
        </tr>
    </table>
</form>

      

When I try to upload a file to my server, say less than 20MB, it works fine. But when I try to upload a larger file, say 1GB, that my data is $_POST

not installed.

How can I report that my data is not installed? When navigating to an action page using this form, it checks what it is installed for formType

and displays / launches accordingly. But when I try to upload a larger file, it says it is $_POST['formType']

not installed, although it looks at the form - it's clear.

My Current PHP.ini

config has the following settings: upload_max_filesize = 5000M

andpost_max_size = 5000M

And I have a file web.config

that reads:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2147483648" />
      </requestFiltering>
    </security>
        <staticContent>
            <mimeMap fileExtension=".zipx" mimeType="application/x-zipx-compressed" />
        </staticContent>
  </system.webServer>
    <system.web>
        <sessionState timeout="60" />
    </system.web>
</configuration>

      

Why can he lose data $_POST

after a certain time while waiting for the file to download? Can I change the form load timeout?

EDIT:

print_r($_POST)

returns Array ( )

+3


source to share


1 answer


By offering to take the code and transfer it to the virtual machine.

If you put the files in, do the setup for the LAMP stack with Apache - does it work as expected?



Testing with Apache can help you verify that your PHP code is in order.

Also, from the comments, please visit http://www.linuxquestions.org/questions/linux-software-2/large-file-upload-%24_post-empty-in-php-281032/ and Data transfer issues between pages PHP with POST , maybe they can help you with that.

0


source







All Articles