Skip to content

[BUG] Cloud upload breaks on zip files #359

Closed

Description

@phernandez

Bug Description

A clear and concise description of what the bug is.

The cloud upload breaks on zip files

Image

It should ignore them and output a message to the console.

Activity

  1. added
    bug
    on Oct 15, 2025
  2. claude commented on Oct 15, 2025

    @claude
    Contributor

    Claude finished @phernandez's task —— View job • claude/issue-359-20251015-1714 • Create PR ➔


    Fix Complete

    Issue: Cloud upload breaks on zip files

    Root Cause:
    Upload code attempted to upload all non-ignored files including binary archives. Basic Memory is designed for markdown-based knowledge management, and archive files should be skipped.

    Solution Implemented:

    • Added check for archive file extensions (zip, tar, gz, bz2, xz, 7z, rar, tgz, tbz2)
    • Archive files are now skipped with informative console message
    • Upload continues with remaining files
    • Success message shows count of skipped files

    Changes Made:

    1. src/basic_memory/cli/commands/cloud/upload.py:

      • Added ARCHIVE_EXTENSIONS constant
      • Added _is_archive_file() helper function
      • Modified upload_path() to skip archives and track count
      • Updated completion message
    2. tests/cli/test_upload.py:

      • Added test_skips_archive_files() to verify behavior

    Files Changed:

    • /home/runner/work/basic-memory/basic-memory/src/basic_memory/cli/commands/cloud/upload.py:14 (ARCHIVE_EXTENSIONS constant)
    • /home/runner/work/basic-memory/basic-memory/src/basic_memory/cli/commands/cloud/upload.py:97 (_is_archive_file function)
    • /home/runner/work/basic-memory/basic-memory/src/basic_memory/cli/commands/cloud/upload.py:56 (skip logic)

    Labels Added: bug, cloud

    --- | Branch: claude/issue-359-20251015-1714

  3. added a commit that references this issue on Oct 15, 2025
    a70be57
  4. added
    cloud
    on Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcloud

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions