Цю сторінку ще не перекладено українською, тому нижче англійська версія.

upload() form()

A multi-file upload widget (blueimp jQuery File Upload) from the form2/upload template.

form()->upload($name = '', $desc = '', $extra = [], $replace = [])

Опції

ОпціяЗначення
$nameDefault image.
descLabel.
(template options)The options go to the template as option, the values as item.

Приклад

Select file...

Код

return form()->upload('photos', 'Photos');

Примітки

  • The upload endpoint is your module action: check type and size, and store the files under generated names.

Див. також: form/file