File Uploads

  1. Example: Multiple file inputs
  2. Example: Accepting multiple attachments with one input
  3. File uploads with AJAX

It is easy to accept file attachments via forms powered by Form2chat. Just add enctype="multipart/form-data" to your form tag and you're all set:

<form action="https://app.form2chat.io/f/q1w2e3r4" enctype="multipart/form-data" method="POST" accept-charset="UTF-8">
  ...
  <input type="file" name="photo">
  ...
</form>

Example: Multiple file inputs

<form action="https://app.form2chat.io/f/q1w2e3r4" enctype="multipart/form-data" method="POST" accept-charset="UTF-8">
  ...
  <input type="file" name="photo">
  <input type="file" name="application">
  <input type="file" name="cover-letter">
  ...
</form>

Example: Accepting multiple attachments with one input

<form action="https://app.form2chat.io/f/q1w2e3r4" enctype="multipart/form-data" method="POST" accept-charset="UTF-8">
  ...
  <input type="file" name="attachments[]" multiple>
  ...
</form>

File uploads with AJAX

Please refer to Using AJAX page for example of file uploads with AJAX.