aiskillstore/marketplace / skills/aayushbaniya2006/s3-upload-handler
s3-upload-handler
VerifiedHandle S3 file uploads including UI components, client-side logic, and server-side processing
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.3 KB |
| reference.md | markdown | 1.3 KB |
| skill-report.json | config | 35.3 KB |
reference.md
View on GitHub# S3 Upload Reference
## Files
- **UI Component**: `src/components/ui/s3-uploader/s3-uploader.tsx`
- **Client SDK**: `src/lib/s3/clientS3Uploader.ts`
- **Server Utility**: `src/lib/s3/uploadFromServer.ts`
## Components
### S3Uploader Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `presignedRouteProvider` | `string` | Required | API endpoint to get presigned URL |
| `variant` | `"button" \| "dropzone"` | Required | UI style |
| `onUpload` | `(urls: string[]) => Promise<void>` | Required | Success callback |
| `maxFiles` | `number` | `1` | Max files allowed |
| `maxSize` | `number` | `5MB` | Max file size in bytes |
| `accept` | `string` | `undefined` | File type filter (e.g. "image/*") |
| `multiple` | `boolean` | `false` | Allow multiple files |
| `value` | `string \| string[]` | `undefined` | Controlled value |
| `onChange` | `(val: string \| string[]) => void` | `undefined` | Controlled change handler |
## Examples
### Button Variant (Single File)
```tsx
<S3Uploader
variant="button"
presignedRouteProvider="/api/upload"
onUpload={handleUpload}
buttonText="Upload Avatar"
/>
```
### Dropzone Variant (Multiple Files)
```tsx
<S3Uploader
variant="dropzone"
presignedRouteProvider="/api/upload"
onUpload={handleUpload}
multiple
maxFiles={5}
dropzoneText="Drag project files here"
/>
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |