upload files when '$key' is array

you can now upload files when the key is an array (e.g. images), which is useful for multi-file uploads when the key is an array of files