Sample HTML Form Code With File Upload

Below HTML Form Code shows you the basic implementation of file upload with NoCodeForm.

<form
action="https://www.nocodeform.co/f"
method="POST"
enctype="multipart/form-data"
>
<input type="text" name="name" required />
<input type="email" name="email" required />
<textarea name="message-ncf-sentiment" required></textarea>
<!-- Supported File Types:
JPG, JPEG, PNG, WEBP, GIF ,SVG , PDF , JS , CSS , WOFF2 ,
WOFF , TTF , OTF , EOT , TXT , MP4 , WEBM , MOV , SWF ,
TS , M3U8
-->
<input
type="file"
id="file"
name="file"
accept="image/png, image/jpeg, image/bmp, image/gif, application/pdf, image/tiff"
/>
<!-- Your No Code Form Id -->
<input type="hidden" name="ncfid" value="{formId}" />
<!-- Your Thank You Page Redirection.
Default is: https://www.nocodeform.co/thank-you
-->
<input
type="hidden"
name="ncfr"
value="https://www.your-awesome-website.com/thank-you"
/>
<!-- Mandatory Field to prevent your form from bots-->
<input type="text" autocomplete="off" name="ncf-pot" style="display: none" />
<button type="submit">Submit Form</button>
</form>

Currently NoCodeForm supports given below file formats,

  • Image : JPG, JPEG, PNG, WEBP, GIF, SVG
  • Video : MP4, WEBM, MOV, TS, M3U8
  • Document : TXT, PDF, JS, CSS,
  • Font Files : WOFF2, WOFF, TTF, OTF, EOT, SWF
💡

All the uploaded files get scanned to detect any kind of malware, trojans, and viruses provided by an suspicious sources. Zero tolerance for any such activity.