Lord_Helmchen VIP
Total posts: 31
15 Mar 2014 13:53

In last version you've added

add - image field - validation for uploaded file extensions.

But if i don't want to upload a picture you get also an error

Not allowed file extension for field Cover. You may only attach png, jpg or gif

So i have to upload a picture even it isn't required.

Last Modified: 17 Mar 2014


Lord_Helmchen VIP
Total posts: 31
15 Mar 2014 14:40

I looked trough the code. Shouldn't it be (line 79)

if(!empty($ext) && FALSE === array_search(strtolower($ext), array('jpg', 'png', 'gif')))


Sergey
Total posts: 13,748
17 Mar 2014 03:46

Thank you. Fixed for next update.

Powered by Cobalt