Skip to content

Uploading Assets (assets/upload) #30

Closed

Description

@leogdion
No description provided.

Activity

  1. added this to the milestone on Sep 15, 2020
  2. leogdion commented on Nov 27, 2025

    @leogdion
    MemberAuthor

    Status Update: The uploadAssets operation exists in Sources/MistKit/Generated/Client.swift (line 2907) but is not exposed in the public CloudKitService API.

    What needs to be done:

    1. Create public wrapper methods in CloudKitService+Operations.swift:
      • uploadAsset(_:) for single file upload
      • uploadAssets(_:) for batch uploads
    2. Handle multipart upload for large files
    3. Add progress tracking support (AsyncSequence or Progress type)
    4. Add documentation with examples for images, videos, documents
    5. Add tests including large file scenarios

    Generated operation signature:

    internal func uploadAssets(_ input: Operations.uploadAssets.Input) 
      async throws -> Operations.uploadAssets.Output

    Critical feature - currently MistKit can only reference existing assets, not upload new ones.

  3. modified the milestones: , v1.0.0-alpha.3 on Nov 27, 2025
  4. leogdion commented on Jan 9, 2026

    @leogdion
    MemberAuthor

    This issue is now tracked as part of parent issue #199 - Complete CloudKit API Coverage

  5. linked a pull request that will close this issueAdding Support for Upload Asset #232on Feb 3, 2026
  6. leogdion commented on Feb 5, 2026

    @leogdion
    MemberAuthor

    This has been implemented. Asset upload functionality is fully available:

    • CloudKitService.uploadAssets() - Complete two-step asset upload workflow
    • CloudKitService.uploadAssetData() - Direct asset upload method
    • Examples/MistDemo/Sources/MistDemo/Commands/UploadAssetCommand.swift - CLI interface

    The implementation includes:

    • Two-step upload process (request URL from CloudKit, upload to CDN)
    • Proper transport separation (URLSession for CDN, avoiding HTTP/2 connection reuse issues)
    • Error handling and validation
    • Test coverage in Tests/MistKitTests/Service/CloudKitServiceUploadTests+*.swift

    Closing as completed.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions