To solve this, just remove ".html" from the file name. The correct file name should be "filename.dmg".