Chrome 71 64bit
Windows 10 Pro latest build
Summary
I don't get the file size showing on attachments.
Steps to reproduce error
See post on my forum
http://midland.philsbbs.com/Topic/Posts/8957?pagenum=1&archived=0
Results
Expected result
---------------
Attached to show file size next to file name
Actual result
---------------
see : http://midland.philsbbs.com/Topic/Posts/8957?pagenum=1&archived=0
Notes/Attachments
http://midland.philsbbs.com/Topic/Posts/8957?pagenum=1&archived=0
Example
Windows 10 Pro latest build
Summary
I don't get the file size showing on attachments.
Steps to reproduce error
See post on my forum
http://midland.philsbbs.com/Topic/Posts/8957?pagenum=1&archived=0
Results
Expected result
---------------
Attached to show file size next to file name
Actual result
---------------
see : http://midland.philsbbs.com/Topic/Posts/8957?pagenum=1&archived=0
Notes/Attachments
http://midland.philsbbs.com/Topic/Posts/8957?pagenum=1&archived=0
Example
Phil
Posted
Thank you @huwr change applied.
Posted
The fix is just a change to a template so you may attempt the fix yourself if you wish.
Open Views\Shared\PostMessage.cshtml and look for the code below (should be arounf line 370)
Change it as below (or replace block with code below)
Open Views\Shared\PostMessage.cshtml and look for the code below (should be arounf line 370)
Code:
if (arr[1].indexOf("pdf") >= 0) {
$("#" + textId).insertAtCaret("[pdf]" + arr[0].replace('"', '') + "[/pdf]");
} else if (arr[1].indexOf("image") >= 0) {
$("#" + textId).insertAtCaret("[img]" + arr[0].replace('"', '') + "[/img]");
} else {
$("#" + textId).insertAtCaret("[file]" + arr[0].replace('"', '') + "[/file]");
}
Change it as below (or replace block with code below)
Code:
var filesize = "";
if (arr[1].indexOf("pdf") >= 0) {
$("#" + textId).insertAtCaret("[pdf]" + arr[0].replace('"', '') + "[/pdf]");
} else if (arr[1].indexOf("image") >= 0) {
$("#" + textId).insertAtCaret("[img]" + arr[0].replace('"', '') + "[/img]");
} else {
if (arr.length === 3) {
filesize = arr[2].replace('"', '');
}
$("#" + textId).insertAtCaret("[file " + filesize + "]" + arr[0].replace('"', '') + "[/file]");
}
Posted
Fixed here
Posted
A lot of rain here in the weekend too and some of the snow melted. Sunny and cold today.
Posted
Raining in Tampa this morning, but still mid twenties.
Posted
rain here in croydon, UK
Posted
Not sure I can cope with the weather back home, 26 and sunny here
Posted
no rush you can stay out there a few more weeks (not months lol)
Posted
Well spotted, will fix on my return from sunny Miami
Posted
FileUpload
If you're having problems uploading, try choosing a smaller image.
Send Topic
Loading...