<style type="text/css">
.myfile{
width: 100%;
}
</style>
<div class="container">
<label class="custom-file myfile">
<input type="file" id="file2" class="custom-file-input">
<span class="custom-file-control">choose file</span>
</label>
</div>