<p>turned out I'd forgotten I hardcoded the form validation options from the render tag and didn't update the validation </p>

CC BY-SA 4.0
2022-04-07T14:11:38.123Z
2022-04-07T14:11:38.123Z
Steven Grant
<p>having an issue with Solspace Freeform. I have a form with 2 file fields. The max file size has been increased to 20Mb, Nginx/PHP/Craft have all been increased to 20Mb too but yet  when I try to upload a 10MB file, the error says the max file size is 2048Kb.</p>
<p>Not quite sure where that's coming from or more importantly why this is. Has anyone encountered this before?</p>

CC BY-SA 4.0
2022-04-07T11:47:25.290Z
Default max size for a Freeform upload field is

    const DEFAULT_MAX_FILESIZE_KB = 2048;

Its expecting KB. What did you add to the Max file size in the freeform options for that field?
John Henry Donovan
<plugin-freeform><solspace><freeform>
Freeform upload size error is wrong
# Freeform upload size error is wrong

(Asked by: username_0 on 2022-04-07)

having an issue with Solspace Freeform. I have a form with 2 file fields. The max file size has been increased to 20Mb, Nginx/PHP/Craft have all been increased to 20Mb too but yet when I try to upload a 10MB file, the error says the max file size is 2048Kb.

Not quite sure where that's coming from or more importantly why this is. Has anyone encountered this before?

**Tags:** plugin-freeform, solspace, freeform

> **Comments:**
> **username_1**: Default max size for a Freeform upload field is      const DEFAULT_MAX_FILESIZE_KB = 2048;  Its expecting KB. What did you add to the Max file size in the freeform options for that field?  

---

## 1 answers

### Answer by username_0 on 2022-04-07. Score: 1

turned out I'd forgotten I hardcoded the form validation options from the render tag and didn't update the validation


---

