Skip to content

ondrejstolar/JS-File-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

JS-File-Control

JS file selection control

How to use it

on first line of the code you will find "document.getElementById('userfile')" change the userfile acordingly to your ID of file input field in a form. In this case JS is set to check for documents such is .doc .docx etc and file size can't be smaller than xxx kb or bigger than xxx kb if check is OK it will allow user to submit your form if check fails then user input will be deleted and red error message will apear in ID element you have to specify - document.getElementById("wrongFile")

About

JS file selection control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published