PHP - Uploading multiple files
I'm working on a plugin for wordpress and I want to be able to upload multiple pictures from a form. Right now when I have a form for two pictures and submit it empty, my $_FILES array looks like this:

    Array ( [image] => Array ( [name] => Array ( [1] => [2] =>) [type] => Array ( [1] => [2] =>) [tmp_name] => Array ( [1] => [2] =>) [error] => Array ( [1] => 4 [2] => 4) [size] => Array ( [1] => 0 [2] => 0 ) ) )

Now the problem is that I want to use wordpress' upload handler, wp_handle_upload. It doesn't take arrays for arguments, so I'm wondering if there's a way to submit the files one at a time from the $_FILES array. The files have the same key in each array.
PHP - Uploading multiple files
===

I'm working on a plugin for wordpress and I want to be able to upload multiple pictures from a form. Right now when I have a form for two pictures and submit it empty, my $_FILES array looks like this:

    Array ( [image] => Array ( [name] => Array ( [1] => [2] =>) [type] => Array ( [1] => [2] =>) [tmp_name] => Array ( [1] => [2] =>) [error] => Array ( [1] => 4 [2] => 4) [size] => Array ( [1] => 0 [2] => 0 ) ) )

Now the problem is that I want to use wordpress' upload handler, wp_handle_upload. It doesn't take arrays for arguments, so I'm wondering if there's a way to submit the files one at a time from the $_FILES array. The files have the same key in each array.