javascript file upload file on submit code example
Example 1: javascript upload file button
<input id='fileid' type='file' hidden/>
<input id='buttonid' type='button' value='Upload MB' />
Example 2: File Upload Button and display file javascript
.custom-file-upload {
border: 1px solid #ccc;
display: inline-block;
padding: 6px 12px;
cursor: pointer;
}