The callback provides feedback about attachment progress for the UI. Right now, it doesn't log any debug messages, so you still need these debug messages, but it could also handle that part. In any case, it's pretty unlikely that `Zotero.MIME.getMIMETypeFromURL` is going to fail.