fixed input reading in accordion for attachment creation