ファイル添付の使い方

添付ファイルを送信するフォームの実装例と注意点です。

できます。

ファイルを送信する際は、formタグにenctype="multipart/form-data" をセットしてください。

<form method="post" action="https://hyperform.jp/api/9qEudyGb" enctype="multipart/form-data">
    <label>メールアドレス</label>
    <input name="email" type="email">
    <label>添付ファイル</label>
    <input type="file" name="attachment">
    <button type="submit">送信</button>
</form>

送信されたファイルは、管理者/訪問者へのメールに自動で添付されます。