file-uploads

Automate tenant-isolated file uploads with chunking, validation, and metadata auditing.

Updated May 15, 2026
One-click install
npx skills add https://github.com/pphatdev/erp-prompt --skill file-uploads-pphatdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-uploads
Source: https://github.com/pphatdev/erp-prompt/tree/main/rules/uploads
Command: npx skills add https://github.com/pphatdev/erp-prompt --skill file-uploads-pphatdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

In multi-tenant ERP systems, file uploads must be isolated per tenant, protected from cross-tenant leakage, and tracked for auditing. This skill provides a secure, standardized approach for validating, chunking, storing, and retrieving files across tenants.

Core Features & Use Cases

  • Enforces chunked uploads for large files, robust server memory management, and resumable transfers.
  • Validates MIME types server-side, sanitizes filenames, computes SHA-256 checksums, and records rich metadata for auditing.
  • Stores uploads on tenant-scoped storage with dynamic module paths and supports private URL signing for secure access.
  • Use Case: A HR portal accepts job applications and contracts from multiple tenants without risking data exposure.

Quick Start

Integrate the file-upload service into your tenant module and start storing uploads with automated validation, chunking, and auditing.

Frequently Asked Questions about file-uploads

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

FAQPage Schema
How do I handle secure multi-tenant file uploads in Laravel without cross-tenant data leakage?

Secure multi-tenant file uploads in Laravel require tenant-scoped storage paths, server-side MIME verification, and sanitized filenames. This approach automates tenant isolation to prevent cross-tenant data leakage while standardizing validation across modules.

What is the best way to implement chunked file uploads for large files in a multi-tenant application?

Chunked file uploads for large files split transfers into manageable pieces for robust server memory management and resumable transfers. This method ensures reliable handling of large multi-tenant uploads while maintaining strict data isolation.

How do I generate signed private URLs for retrieving tenant-scoped storage files?

Generating signed private URLs for tenant-scoped storage files secures access to isolated uploads. This process validates retrieval requests dynamically, ensuring only authorized users access private multi-tenant data through auditable workflows.

Does Laravel file upload validation support server-side MIME type verification and SHA-256 checksums?

Laravel file upload validation can support server-side MIME type verification and SHA-256 checksums through customized processing. This configuration sanitizes filenames and records rich metadata for thorough storage auditing.

How do I audit file upload metadata across multiple tenants in an ERP system?

Auditing file upload metadata across multiple tenants in an ERP system involves recording SHA-256 checksums, sanitized filenames, and dynamic module paths. This creates an auditable storage workflow tracking every upload action.