This commit is contained in:
Dávid Jančár 2024-05-22 21:52:48 +02:00
parent eb154a7887
commit 4ae650fad9
2 changed files with 9 additions and 18 deletions

@ -49,18 +49,16 @@
</tr> </tr>
</table> </table>
<!--<form action="upload.php" method="post" enctype="multipart/form-data"> <form action="upload.php" method="post" enctype="multipart/form-data">
Select image to upload: Vyber si súbor na nahratie:
<input type="file" name="fileToUpload" id="fileToUpload"> <input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form>
<!-- The data encoding type, enctype, MUST be specified as below --> <!-- The data encoding type, enctype, MUST be specified as below -->
<!--<form enctype="multipart/form-data" action="__URL__" method="POST" enctype="multipart/form-data"> <form enctype="multipart/form-data" action="__URL__" method="POST" enctype="multipart/form-data">
<!-- MAX_FILE_SIZE must precede the file input field --> <!--<MAX_FILE_SIZE must precede the file input field -->
<!--<input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array --> <!-- Name of input element determines name in $_FILES array -->
<!--Send this file: <input name="userfile" type="file" /> <Send this file: input name="userfile" type="file" />
<input type="submit" value="Send File" />--> <input type="submit" value="Nahrať súbor" />
</form> </form>
</body> </body>
</html> </html>

@ -49,18 +49,11 @@
</tr> </tr>
</table> </table>
<!--<form action="upload.php" method="post" enctype="multipart/form-data"> <form action="upload.php" method="post" enctype="multipart/form-data">
Select image to upload: Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload"> <input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit"> <input type="submit" value="Nahrať súbor" name="submit">
</form> </form>
<!-- The data encoding type, enctype, MUST be specified as below -->
<!--<form enctype="multipart/form-data" action="__URL__" method="POST" enctype="multipart/form-data">
<!-- MAX_FILE_SIZE must precede the file input field -->
<!--<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
<!--Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />-->
</form> </form>
</body> </body>
</html> </html>