Delaying next() callback until after all file uploads have completed