Currently, I am developing an upload page that does not allow the use of jquery and bootstrap. For Chrome, I have implemented the following CSS code to address my issue:
.btn-file-upload{
width: 200px;
position:relative;
height: 40px;
}
.btn-file-upload:after{
content: attr(value);
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 99%;
background: white;
color: black;
border:1px solid rgb(0, 0, 126);
border-radius: 2px;
text-align: center;
font-size: 12px;
line-height: 1.7;
overflow: visible;
}
<input type="file" name="theFile" size="60" value="label" onkeypress="javascript:return false;" onchange="changeFileName()" class="btn-file-upload">
I am looking for a way to ensure this solution works seamlessly on Firefox without affecting the Chrome version. Additionally, is there a method to enable drag and drop functionality for the input file on Internet Explorer?