fix upload plugin