Fixed issue mg_upload not working with multiple files.