Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

### Required

[[1](https://github.com/cnzf1/obsidian-paste-image/blob/23963ebad95ccefbf7eff28523b83338b71a1460/src/PluginSettingsTab.ts#L64)][[2](https://github.com/cnzf1/obsidian-paste-image/blob/23963ebad95ccefbf7eff28523b83338b71a1460/src/PluginSettingsTab.ts#L65)][[3](https://github.com/cnzf1/obsidian-paste-image/blob/23963ebad95ccefbf7eff28523b83338b71a1460/src/Plugin.ts#L260)]:You should change all instances of `var` to either `const` or `let`. `var` has function-level scope, so it can easily lead to bugs if you're not careful. Here's a pretty good guide with examples of why not to use `var`: [why `var` is obsolete](https://javascript.plainenglish.io/4-reasons-why-var-is-considered-obsolete-in-modern-javascript-a30296b5f08f)

[[1](https://github.com/cnzf1/obsidian-paste-image/blob/23963ebad95ccefbf7eff28523b83338b71a1460/src/Plugin.ts#L16)][[2](https://github.com/cnzf1/obsidian-paste-image/blob/23963ebad95ccefbf7eff28523b83338b71a1460/src/Plugin.ts#L242)][[3](https://github.com/cnzf1/obsidian-paste-image/blob/23963ebad95ccefbf7eff28523b83338b71a1460/src/Plugin.ts#L753)]:This class is only available on desktop, which means that this will throw errors on mobile (that's a problem since you have `isDesktopOnly` marked as `false` in your manifest.json file.

[[1](https://github.com/cnzf1/obsidian-paste-image/blob/23963ebad95ccefbf7eff28523b83338b71a1460/src/AttachmentCollector.ts#L284)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.



---

### Optional

[[1](https://github.com/cnzf1/obsidian-paste-image/blob/23963ebad95ccefbf7eff28523b83338b71a1460/src/PromptWithPreviewModal.ts#L39)]:Use `app.fileManager.trashFile(file: TAbstractFile)` instead, this will make sure that the file is deleted according to the users preferences.



---



Do <b>NOT</b> open a new PR for re-validation.
Once you have pushed all of the required changes to your repo, the bot will update the labels on this PR within 6 hours.
If you think some of the required changes are incorrect, please comment with `/skip` and the reason why you think the results are incorrect.