fix dam upload