Skip to content

Commit

Permalink
Fix upload multiple files with uploadUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
4khobta authored Oct 24, 2020
1 parent d43bb9d commit 577e21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function initWidget()
/**
* Auto-set multiple file upload naming convention
*/
if (ArrayHelper::getValue($this->options, 'multiple')) {
if (ArrayHelper::getValue($this->options, 'multiple') && !ArrayHelper::getValue($this->pluginOptions, 'uploadUrl')) {
$hasModel = $this->hasModel();
if ($hasModel && strpos($this->attribute, '[]') === false) {
$this->attribute .= '[]';
Expand Down

0 comments on commit 577e21e

Please sign in to comment.