We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 481cd61 commit e5b7471Copy full SHA for e5b7471
1 file changed
src/Upload.php
@@ -315,7 +315,11 @@ public function validate()
315
public function replaceStr(&$text)
316
{
317
$text = str_replace('@name', $this->getClientOriginalName(), $text);
318
+
319
320
$text = str_replace('@size', $this->size(), $text);
- $text = str_replace('@maxSize', $this->maxSize['number'], $text);
321
322
+ if($this->maxSize)
323
+ $text = str_replace('@maxSize', $this->maxSize['number'], $text);
324
}
325
0 commit comments