grevory / bootstrap-file-input

Standardizes the file input field to look like a Bootstrap button in all browsers
Other
179 stars 63 forks source link

Add new option : data-filename-placement #26

Closed yllieth closed 10 years ago

yllieth commented 10 years ago

Available values are outside (default) and inside. When data-filename-placement="inside", the selected file name will be displayed inside the button, instead of its label

<input type="file" 
    title="This text will be replaced by the selected file name"
    data-filename-placement="inside" />

In addition, I added a <span> to contain button text. I also added an example in your demo.html file.

grevory commented 10 years ago

Thanks. I'm going to make some minor adjustments but this is a cool idea.