# give/4.16.9/src/Form/LegacyConsumer/templates/file.html.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 20 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Form/LegacyConsumer/templates/file.html.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Form/LegacyConsumer/templates/file.html.php
- Modified: 2021-11-23T23:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/Form/LegacyConsumer/templates/file.html.php#L10-L20`.

```php
<?php
/** @var Give\Framework\FieldsAPI\File $field */ ?>
<?php
/** @var string $fieldIdAttribute */ ?>

<input
    type="file"
    name="<?php
    echo $field->getName(); ?><?php
    echo $field->getAllowMultiple() ? '[]' : ''; ?>"
    id="<?php
    echo $fieldIdAttribute; ?>"
    <?php
    echo $field->getAllowMultiple() ? 'multiple' : ''; ?>
    <?php
    echo $field->isRequired() ? 'required' : ''; ?>
    <?php
    echo $field->isReadOnly() ? 'readonly' : ''; ?>
>

```
