enigmadigital / Formerly

Plugin to allow users to create custom forms within Craft CMS
MIT License
59 stars 24 forks source link

File upload error with Craft 2.5 #58

Open sarah3585 opened 8 years ago

sarah3585 commented 8 years ago

Hello,

I'm getting a php warning on submission when a file has been uploaded.

array_merge(): Argument #1 is not an array

AssetsFieldType.php(266)

266 $fileIds = array_merge($value, $fileIds);

MarketSouth commented 8 years ago

Same here, has anyone resolved this?.

I'll come back here and update this if I do.

MarketSouth commented 8 years ago

Well I feel a little embarrassed I didn't have enctype="multipart/form-data" on my form.

Hope this saves someone pulling their hair out.

Cheers (https://github.com/xodigital/Formerly/issues/51#issuecomment-152089574)