fixed missing filename for non-array uploads