input limit file type html
<!-- (IE 10+, Edge (EdgeHTML), Edge (Chromium), Chrome, Firefox 42+) -->
<input type="file" accept=".jpg,.png,.pdf" />
input limit file type html
<!-- (IE 10+, Edge (EdgeHTML), Edge (Chromium), Chrome, Firefox 42+) -->
<input type="file" accept=".jpg,.png,.pdf" />
input a file in html form
<form action="{% url 'submit' %}" method="POST" enctype="multipart/form-data">
{% csrf_token %}
<div class="mb-3">
<label for="formFile" class="form-label">Image</label>
<input class="form-control" type="file" id="formFile" name="image" accept="image/*">
</div>
<button class="btn btn-outline-info" type="submit">Submit</button>
</form>
input type file select only video
accept="video/mp4,video/x-m4v,video/*"
file input file types
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
HTML input file tag
<label for="myfile">Select a file:</label>
<input type="file"
id="myfile" name="myfile">
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us