Importing Attachments with No Extension

With no native solution popping up here, I ended up writing a script that

  • Parsed my the XML import file I had and identified problem attachments
  • Manually download those attachments with a file extension
  • Upload those images to a new web server
  • Alter the appropriate link and wp:attachment_url nodes to point to the new URLs
  • Re-save the XML

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)