Skip to content

Commit 55c7aac

Browse files
committed
fixed file uploading and status result of response
1 parent 26dcea3 commit 55c7aac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function print_errors($errors) {
123123
Mail send.
124124
</div>
125125
<?php endif; ?>
126-
<form action="advanced.php" method="post">
126+
<form action="advanced.php" method="post" enctype="multipart/form-data">
127127
<div class="form-group">
128128
<label for="adv-name">Name</label>
129129
<input type="text" name="name" class="form-control" id="adv-name" placeholder="Name">

src/FormHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function getValidator($data)
124124
public function process()
125125
{
126126
$this->handler->process($this->formFields);
127-
$this->errors = array($this->handler->getErrors());
127+
$this->errors = $this->handler->getErrors();
128128
}
129129

130130
/**

0 commit comments

Comments
 (0)