We currently support only creating links to existing attachments. This means you need to upload the file outside BlockNote. The user should have the option to upload a new file when creating a link to an attachment.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.