14 lines
1.3 KiB
HTML
14 lines
1.3 KiB
HTML
|
|
<!-- Тип кодирования данных, enctype, требуется указывать только так, как показывает пример --><form enctype="multipart/form-data" action="file_upload.php" method="POST">
|
|
<!-- Поле MAX_FILE_SIZE требуется указывать перед полем загрузки файла -->
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="3000000" />
|
|
<!-- Название элемента input определяет название элемента в суперглобальном массиве $_FILES -->
|
|
Отправить файл: <input name="userfile" type="file" />
|
|
<input type="submit" value="Отправить файл" />
|
|
</form>
|
|
|
|
|
|
<!-- <label class="block mb-2 text-sm font-medium text-gray-900 dark:text-white" for="file_input">Upload file</label> -->
|
|
<!-- <!-- <!-- <!-- <!-- <input class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400" aria-describedby="file_input_help" id="file_input" type="file"> --> --> --> --> -->
|
|
<!-- <!-- <!-- <p class="mt-1 text-sm text-gray-500 dark:text-gray-300" id="file_input_help" value="Отправить файл">SVG, PNG, JPG or GIF (MAX. 800x400px).</p> --> --> -->
|