only cycle when actual files have been uploaded