draft images feature #14

This commit is contained in:
ghost 2023-09-24 18:56:21 +03:00
parent 947e359976
commit 6b112d441c
4 changed files with 64 additions and 2 deletions

View file

@ -106,12 +106,23 @@ class AppControllerSubmit
),
]
],
'image' => (object)
[
'error' => [],
'attribute' => (object)
[
'required' => $this->_validator->getPageImageRequired(),
'accept' => implode(',', $this->_validator->getPageImageMimeTypes()),
'placeholder' => sprintf(
_('Image file (use Ctrl to select multiple files)')
),
],
],
'torrent' => (object)
[
'error' => [],
'attribute' => (object)
[
'value' => null,
'required' => $this->_validator->getPageTorrentRequired(),
'accept' => implode(',', $this->_validator->getPageTorrentMimeTypes()),
'placeholder' => sprintf(