File uploads
We support file uploads up to 10MB. You can upload files using the file
input. The file will be uploaded to our servers and a link to the file will be returned in the response. The file will be deleted after 7 days. File uploads require the multipart/form-data
content type. You can upload multiple files by using multiple file
inputs. This feature is only available on the Pro and Agency plans.
Basic example
Here is a basic example using just HTML. You can also use JavaScript or a framework to submit the form.
<form action="https://api.dev-forms.com/v1/submit" method="POST" enctype="multipart/form-data"> <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY" /> <input type="hidden" name="subject" value="New form submission" /> <input type="hidden" name="redirect" value="https://dev-forms.com/success" /> <input type="checkbox" name="botcheck" id="" style="display: none;" />
<!-- Form data --> <input type="text" name="name" required /> <input type="email" name="email" required /> <input type="file" name="cover_letter" /> <input type="file" name="resume" /> <textarea name="message"></textarea>
<button type="submit">Submit</button></form>