Dropzone Plus
  • Introduction
  • Getting Started
  • How to submit data
    • With pure HTML
      • Send files with pure HTML
    • With JavaScript
      • Send files with JavaScript
  • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. How to submit data
  2. With pure HTML

Send files with pure HTML

If you also want to send files along your data, it doesn't get much more complicated. All you need to do is to make sure you use enctype="multipart/form-data" and additional file input fields:

<form action="https://plus.dropzone.dev/_p/{YOUR_PROJECT_ID}"
  method="post"
  enctype="multipart/form-data"><!-- << Note the enctype here -->
  
  <input type="text" name="name" />
  <input type="text" name="email" />
  
  <input type="file" name="profilePicture" />
  <input type="file" name="bannerImage" />
  
  <button type="submit">Send</button>
</form>

That's it. The file will get uploaded and you'll get access to all the data via email or the dashboard.

PreviousWith pure HTMLNextWith JavaScript

Last updated 3 years ago

Was this helpful?