Here we'll show you how to create a simple HTML form and accept file uploads
The form in this example has a file field and accepts file uploads.
Here’s the HTML for the form
The above results in the following form
Accepting file uploads in a HTML form
Make sure you set enctype="multipart/form-data" on the form tag. Then you need to add a input with the type attribute set to file. You can then perform simple validation
of the types of files you accept by adding a accept attribute. If you just want images, you can set the value to image/* which would accept all image types. All of this is
just standard HTML form validation and isn’t specific to FormBackend.
When a file is submitted to us, we store it on our servers. You can chose to have it be sent with outgoing emails, or you can keep it in the FormBackend database and just view the files
when you log in - up to you! :)
Want to try out FormBackend for free today?
You can try FormBackend for free for 1 form today!