Skip to content
Back to skills

Filesystem Uploads And Urls

ASecurity

Store and serve files via Storage; set visibility, generate URLs, and handle streaming safely

  • 147 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
devopsgosqlbackend

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add jpcaparas/superpowers-laravel --skill filesystem-uploads-and-urls --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Filesystem Uploads And Urls?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Filesystem Uploads And Urls
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jpcaparas-filesystem-uploads-and-urls/badge)](https://www.skillsdirectory.com/skills/jpcaparas-filesystem-uploads-and-urls)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: laravel:filesystem-uploads
description: Store and serve files via Storage; set visibility, generate URLs, and handle streaming safely
---

# 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

- Keep user uploads under a dedicated disk with explicit `visibility`
- Avoid assuming local paths; always go through Storage
- For public assets, run `storage:link` and serve via web server / CDN
- Validate mime/types and size limits at upload boundaries

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.