totaljs / framework

Node.js framework
http://www.totaljs.com
Other
4.36k stars 450 forks source link

When using a field of type array with multipart, 1 length array parameter are lost #742

Closed luasenvy closed 4 years ago

luasenvy commented 4 years ago

When using a field of type array with multipart For arrays of length 1, the parameters are lost.

multipart form: image

schema.define: image

in workflow: image

petersirka commented 4 years ago

You need to specify a type of Array, maybe there is a problem. Try to update schema like this:

schema.define('keep_docs', '[String]');
schema.define('keep_gallery', '[String]');
luasenvy commented 4 years ago

thanks to reply

i try to update schema define and request again: image

image

but there is the same problem.: image

petersirka commented 4 years ago

Please make an example and send me it via email petersirka@gmail.com. Thank you!

luasenvy commented 4 years ago

ok, i will work that in weekend thanks :)