Filesystem uploads and urls

From jpcaparas/superpowers-laravel · View interactive version

Filesystem uploads and urls is an AI agent skill from the GitHub repository jpcaparas/superpowers-laravel. Store and serve files via Storage; set visibility, generate URLs, and handle streaming safely

How to use this skill

Skill file

Filesystem Uploads and URLs

Use the Storage facade consistently; abstract away the backend (local, S3, etc.).

Commands

$path = Storage::disk('public')->putFile('avatars', $request->file('avatar'));

// Temporary URLs (S3, etc.)
$url = Storage::disk('s3')->temporaryUrl($path, now()->addMinutes(10));

// Streams
return Storage::disk('backups')->download('db.sql.gz');

Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.