config.doksoft_file_template = '<a href='{FILE}'>Download file {FILE}</a>';
config.doksoft_file_template = "<div style='display:inline-block'>" +
"<a class='doksoft_instant_file' href='{FILE}'>" +
"<div style='display:inline-block'>" +
"<div style='background: url(\"{PLUGIN_PATH}download.png\") no-repeat; width:24px;height:24px;display:inline-block;'> </div>" +
"<div style='font-size:16px;margin-left: 8px; padding: 0;display:inline-block;vertical-align:middle'>" +
"Download file {FILE}" +
"</div>" +
"</div>" +
"</a>" +
"</div>;
I've been using File Uploader in a recent project - and it works really well. The only problem is that it always uses the same default text for the link: Download file.
I would like to change this to show the filename of the file as the link, eg: myDocument.pdf
I have looked at the code in the plugin which is easy to edit:
I have tried:
...but this includes the file path - so not perfect.
How can I insert just the filename?