disable automatic change of the file name

Web Tips Q & ACategory: Krajee Pluginsdisable automatic change of the file name
ningfenghuang asked 2 years ago

When I tried the Advanced Example 11 of bootstrap-fileinput, it seems it automatically converts the dash ‘-‘ in the file names to underscore ‘_’. Why this happens and how to solve it?
Thanks a lot in advance.

1 Answers
Kartik Staff answered 2 years ago

Read the documentation for bootstrap-fileinput. This is controlled by the slugCallback property that purifies the file name based on a default inbuilt logic. You can override that for your use case.

Login or register to contribute or comment.

Login   Register