V
V
Vladimir Golub2018-05-31 10:40:09
1C-Bitrix
Vladimir Golub, 2018-05-31 10:40:09

How to limit the number of uploaded files with a multiple field?

Property type - file, plural.
How to limit the number of uploaded files to three?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Filippenko, 2018-05-31
@RazerVG

Not standard. On the server side, it's easy to hang a handler on OnBeforeIBlockElementAdd and OnBeforeIBlockElementUpdate that will cut off the excess from the array.
On the client side, you can screw a similar crutch jsfiddle.net/Curt/u4NuH

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question