Hi.
I just found that the files list (when creating a download link) shows wrong file sizes. My file was 233 KB large, the files list said it's 911 KB.
Wrong file size in files list
Re: Wrong file size in files list
Is this about a plugin? WDir maybe? Which version exactly?
Or is it about the filebrowser?
Christoph M. Becker – Plugins for CMSimple_XH
Re: Wrong file size in files list
This is about the CMSimple XH base system.
When you add a link in the editor, there is a selection box called "Link list". It contains all your pages, and at the end you will find all of your files in the /userfiles/downloads folder. The file browser tells me I have a PDF file of "227.8 kb". When I make a link, the "LInk list" tells me the exact same file is "911.1 kb". Another file that is 3.945 bytes large in FileZilla appears to be "15.4 kb" in the "Link list".
Btw: I find it both surprising and annoying that the file browser filters the files in /userfiles/downloads. I found no way to set up the filter scheme, so my .deb, .rpm, .dmg and .asc files remain invisible.
When you add a link in the editor, there is a selection box called "Link list". It contains all your pages, and at the end you will find all of your files in the /userfiles/downloads folder. The file browser tells me I have a PDF file of "227.8 kb". When I make a link, the "LInk list" tells me the exact same file is "911.1 kb". Another file that is 3.945 bytes large in FileZilla appears to be "15.4 kb" in the "Link list".
Btw: I find it both surprising and annoying that the file browser filters the files in /userfiles/downloads. I found no way to set up the filter scheme, so my .deb, .rpm, .dmg and .asc files remain invisible.
Re: Wrong file size in files list
Thanks! Indeed, there is a bug in the tinymce4 plugin. This line is supposed to be:uwes wrote: ↑Thu Jun 28, 2018 8:14 pmWhen you add a link in the editor, there is a selection box called "Link list". It contains all your pages, and at the end you will find all of your files in the /userfiles/downloads folder. The file browser tells me I have a PDF file of "227.8 kb". When I make a link, the "LInk list" tells me the exact same file is "911.1 kb". Another file that is 3.945 bytes large in FileZilla appears to be "15.4 kb" in the "Link list".
Code: Select all
(round((filesize($downloads_path . '/' . $p)) * 10 >> 10) / 10) .
I agree that this is very conservative. Anyhow, you can change it via Plugins → Filebrowser (→ Config); add the other extensions to the respective options in the “Extensions” section. You can also use an asterisk (*) to allow all extensions. (More fancy glob style matching is not yet supported.)
By the way, kudos for distributing .deb and .rpm files, and particularly for .asc (I suppose these are ASCII armored keyssignatures)! Guess CMSimple_XH should catch up on the latter.
PS: filed as https://github.com/manu37/tinymce4/issues/20.
Last edited by cmb on Thu Jun 28, 2018 10:05 pm, edited 3 times in total.
Reason: Fix wording
Reason: Fix wording
Christoph M. Becker – Plugins for CMSimple_XH
Re: Wrong file size in files list
Thanks, this is what I was looking for. I was looking throug the CMS settings and the language file as I was not aware that the file section is done through a plugin.cmb wrote: ↑Thu Jun 28, 2018 9:50 pmI agree that this is very conservative. Anyhow, you can change it via Plugins → Filebrowser (→ Config); add the other extensions to the respective options in the “Extensions” section. You can also use an asterisk (*) to allow all extensions. (More fancy glob style matching is not yet supported.)
(The .asc file is the public key for a deb repository.)