machhub-sdk-file-handling

Automate MACHHUB SDK file upload, retrieval, and blob handling.

1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/machhub-dev/skills --skill machhub-sdk-file-handling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: machhub-sdk-file-handling
Source: https://github.com/machhub-dev/skills/tree/main/machhub-sdk-file-handling
Command: npx skills add https://github.com/machhub-dev/skills --skill machhub-sdk-file-handling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes and documents the process of uploading, retrieving, and managing file blobs for MACHHUB SDK collections, enabling consistent asset handling across projects.

Core Features & Use Cases

  • File uploads to collection fields (image, manual, attachments) with blob support
  • Retrieve and display files as Blobs or object URLs for UI previews
  • Delete or manage assets across product catalogs or datasets

Quick Start

Use this skill to implement a reusable file handling layer for your MACHHUB projects; for example, upload product images and manuals to the products collection and display them in the UI.

Frequently Asked Questions about machhub-sdk-file-handling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload files to collection fields using the MACHHUB SDK?

To upload files to collection fields using the MACHHUB SDK, you can use a service layer that initializes the SDK and calls the uploadFile function, handling blob support for images, manuals, and attachments while enforcing file validation options.

How do I retrieve and display blob files from MACHHUB in a UI?

To retrieve and display blob files in a UI, you can use the getFile and getFileURL functions to fetch files as Blobs and generate object URLs, enabling consistent UI previews and in-app displays across your projects.

What is the best way to manage assets like product images and manuals across collections?

The best way to manage assets across collections is to implement a standardized file handling layer that automates blob uploads, retrieval, and deletions, ensuring consistent asset management across product catalogs or datasets.

Can I delete files or attachments from MACHHUB collections?

Yes, you can delete files or attachments from MACHHUB collections by using the deleteFile function provided by the file handling service layer, allowing you to manage and remove assets across product catalogs or datasets.

Does the MACHHUB SDK enforce file validation options during file upload?

Yes, the MACHHUB SDK file handling service enforces file validation options during the uploadFile process, ensuring that uploaded blobs for collection fields meet specified validation criteria before being stored.