Skip to content

Attaching PowerShell (.ps1) file type fails #5642

@1joneselliot

Description

@1joneselliot

Pre-submission Checklist

  • I have searched the existing issues and this bug has not been reported yet
  • I have tested this issue on the demo site or the latest version

Where did you encounter this bug?

Latest stable version (self-hosted)

Memos Version

v0.26.1

Bug Description

When I try to attach a PowerShell (.ps1) file to a memo and click Save, the action fails with an empty error message in the UI. The browser console shows:

StoreError: /memos.api.v1.AttachmentService/CreateAttachment INVALID_ARGUMENT: type is required
    at Uo.wrap (index-CtuVjJcF.js:185:137243)
    at executeRequest (index-CtuVjJcF.js:185:137951)
    at async de (index-CtuVjJcF.js:594:7169)

Steps to Reproduce

  1. Open a new memo.
  2. Add a .ps1 file.
  3. Click Save.
  4. Observe the error in the UI and browser logs.

Expected Behavior

The file should attach successfully.

Screenshots & Additional Context

  • Browser: Edge (latest)
  • Proxmox LXC (community scripts)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions