kjac / FormEditor

A form builder editor for Umbraco 7 - let your editors build forms easily with this free package.
MIT License
99 stars 42 forks source link

File upload doesn't work #126

Closed bobi33 closed 7 years ago

bobi33 commented 7 years ago

I've set the file upload to allow 1mb of data and PNG, but for some reason on form submit I constantly get an error message re the file upload...I'm not sure why this is happening.

kjac commented 7 years ago

Hi @bobi33,

Thanks for reporting. I can recreate the issue... I'll look into it and fix it in the upcoming release (should be imminent).

bobi33 commented 7 years ago

Hi @kjac, thanks for the response :)

I figured out what was happening...file size wasn't too accurate. I'll close this one, but keep an eye out because I thought I set it correctly...although it was quite late in the day, so perhaps it was my eyes.

Thanks.

kjac commented 7 years ago

Hi @bobi33,

The issue is very real. The problem (or at least one of them) is that when you configure the upload field, you're asked to enter the max size in kilobytes... but when the upload field validates the uploaded file, it believes this max size is entered in bytes. I've got that fixed, and will re-test the issue as soon as I can.

kjac commented 7 years ago

There... the fix will be in the next release, which should be pretty imminent.