How does multiple upload work?
Closed this issue · 2 comments
mertosman commented
Hello,
Thank you very much for your plugin. Saved lives in file uploads.
But I have a problem, I cannot upload multiple files.
First, I made my species definition. There is no problem in single installation, but the field named "attachments" must be multiple.
I am sharing the screenshots below, I would be very happy if you could help.
Thank you.
dre1080 commented
Hi! Thanks for the kind words!
Try this:
$input_fields['attachments'] = [
'type' => ['list_of' => ['non_null' => 'Upload']], // or ['list_of' =>'Upload']
'description' => __('Comment attachments', 'dr'),
];
mertosman commented
Thank you. It's done.