Lord_Helmchen VIP
Total posts: 28
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: 28
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,730
17 Mar 2014 03:46

Thank you. Fixed for next update.

Replay Topic
Uploading
Click here to upload and insert file from you hard drive: (png, gif, jpg, jpeg, zip, txt, rar)
Powered by Cobalt