change subset upload to handle zero sized files