Vyberte dokument ve formátu .docx:

<!DOCTYPE html>
<html lang="cs-CZ">
  <head>
    <meta charset="UTF-8" />
    <title>
      .docx wc
    </title>
  </head>
  <body>
    <form action="upload.php" method="post" enctype="multipart/form-data">
      Vyberte dokument ve formátu <code>.docx</code>:
      <input type="file" name="docx" id="docx">
      <input type="submit" value="Nahrát" name="submit">
    </form>

    <hr/>

    <pre>
<?php echo htmlspecialchars(file_get_contents(__FILE__)); ?>
    </pre>
  </body>
</html>