Doesn't this only work for the first file in the upload array?  Or is that structured differently than I think.