file-storage

Configure file storage providers and blob upload behavior for Spiderly apps.

61|24|Updated Sep 14, 2024
One-click install
npx skills add https://github.com/filiptrivan/spiderly --skill file-storage-filiptrivan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-storage
Source: https://github.com/filiptrivan/spiderly/tree/main/claude-plugins/skills/file-storage
Command: npx skills add https://github.com/filiptrivan/spiderly --skill file-storage-filiptrivan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure and manage file storage providers and blob upload behavior within Spiderly, enabling seamless handling of file references across Disk, S3, Azure Blob, and Cloudinary backends, along with label-based attributes and upload hooks.

Core Features & Use Cases

  • Provider Selection: choose among Disk, S3 Public, S3 Private, Azure Blob, and Cloudinary backends.
  • Attribute & Validation: declare blob-related attributes, enforce required MIME type whitelists, and apply size constraints.
  • DI Registration & Configuration: integrate with Spiderly's builder, wire up storage services, and set up appsettings for credentials and endpoints.
  • Upload Flow & Cleanup: manage the multi-step upload lifecycle and automatic cleanup of non-active blobs and editor images.
  • File Naming: apply consistent naming prefixes and folder structures to ease maintenance.

Quick Start

Follow the provider selection steps to enable your preferred storage backend and wire its attributes in your entities.

Frequently Asked Questions about file-storage

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

FAQPage Schema
How do I configure file storage providers for Spiderly apps?

Configure file storage providers by selecting Disk, S3, Azure Blob, or Cloudinary backends and wiring their credentials into appsettings. You register storage services through Spiderly's builder to enable seamless blob upload behavior and DI integration.

What blob upload attributes and validation rules does Spiderly support?

Spiderly supports declaring blob-related attributes with required MIME type whitelists and size constraints. You apply these validation rules to your entities to enforce consistent file handling and restrict uploads to approved formats.

Does Spiderly work with Azure Blob and S3 for file upload management?

Yes, Spiderly works with Azure Blob, S3 Public, S3 Private, Cloudinary, and Disk backends. You can choose your preferred storage provider during configuration to manage file references and blob upload behavior across different environments.

What's the best way to manage blob cleanup and upload lifecycle in Spiderly?

The best way to manage blob cleanup is using Spiderly's multi-step upload lifecycle, which handles automatic cleanup of non-active blobs and editor images. This lifecycle management enforces consistent configuration and removes orphaned files safely.

Why do my Spiderly file uploads fail during DI registration?

File uploads fail during DI registration when storage services are not properly wired into Spiderly's builder or appsettings lack correct credentials and endpoints. Troubleshooting workflows verify naming conventions, validation rules, and provider configuration to resolve errors.

Can I enforce consistent file naming and folder structures for uploaded blobs?

Yes, you can apply consistent naming prefixes and folder structures to ease maintenance. Spiderly enforces clear naming conventions during the upload flow, ensuring organized file references across your selected storage backend.