-btn').disabled = false
            } catch (error) {
              document.getElementById('download-svg-btn').disabled = true
              console.error('Failed to process dwg file: ', error)
            }
          }

          // read the file
          reader.readAsArrayBuffer(file)
        } else {
          document.getElementById('download-svg-btn').disabled = true
          console.log('No file selected')
        }
      })
    </script>
</body>
</html>