Infrastructure low complexity Shared Component backend
0
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Infrastructure adapter handling multipart form data uploads of organization logo images to object storage, returning a CDN-backed URL. Validates file type and size constraints before upload, and generates appropriately sized thumbnails for use across the admin portal and mobile app.

Feature: Organization Settings

logo-upload-adapter

Responsibilities

  • Accept multipart uploads and validate MIME type and file size
  • Upload image blobs to object storage bucket
  • Return CDN URL for immediate use in settings and mobile branding
  • Delete previous logo from storage on replacement

Interfaces

uploadLogo(orgId: string, file: Buffer, mimeType: string): Promise<string>
deleteLogo(orgId: string, existingUrl: string): Promise<void>
validateImageFile(file: Buffer, mimeType: string): ValidationResult
generateCdnUrl(storagePath: string): string

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component