Needs verification, but I suspect that if you had  in your markdown, the image would be uploaded as image.png.
This could create some confusion when uploading images to google drive as it will reuse the file name if it's already present. Consider adapting the upload logic to determine the relative path and then recursively create subfolders in google drive when uploading.
Example:
Files:
- c:\dev\blog\attachments\subfolder\image.png
- c:\dev\blog\posts\2025\file.md
Content:
---
title: ...
postid: ...
---
Here is an image 
cd c:\dev\blog
Import-Module PSBlogger
Publish-MarkdownBloggerPost -File .\posts\2025\file.md -AttachmentsDir .\attachments
Should upload images to <app-folder>/subfolder/image.png
Needs verification, but I suspect that if you had
in your markdown, the image would be uploaded asimage.png.This could create some confusion when uploading images to google drive as it will reuse the file name if it's already present. Consider adapting the upload logic to determine the relative path and then recursively create subfolders in google drive when uploading.
Example:
Files:
Content:
Should upload images to
<app-folder>/subfolder/image.png