Why not allow custom config for allowedImageExt

Aug 3, 2016 at 12:24 PM
Edited Aug 3, 2016 at 12:25 PM
dear tha_watcha,

i can't upload image .svg file using CKE Browser, and i see in code, you fix allowed is { "bmp", "gif", "jpeg", "jpg", "png" }

i think in next version, you allow custom config for this, but you must re-filter this by Host whitelist HostController.Instance.GetString("FileExtensions").

If allow in host, and allow in CKConfig => Allow upload
If allow in CKConfig, but not allowed in Host => Reject upload
Currently, in Hosting not allow Bmp filetype, but CKE still allow upload this bmp filetype on server.

Regard,
Apr 15 at 6:26 PM
Edited Apr 15 at 7:53 PM
thienvc wrote:
dear tha_watcha,

i can't upload image .svg file using CKE Browser, and i see in code, you fix allowed is { "bmp", "gif", "jpeg", "jpg", "png" }

i think in next version, you allow custom config for this, but you must re-filter this by Host whitelist HostController.Instance.GetString("FileExtensions").

If allow in host, and allow in CKConfig => Allow upload
If allow in CKConfig, but not allowed in Host => Reject upload
Currently, in Hosting not allow Bmp filetype, but CKE still allow upload this bmp filetype on server.

Regard,
Yes that will be inlcuded in 2.1.7