Phoenix File Uploads
Implements secure, production-grade file upload functionality for Elixir Phoenix applications following LiveView best practices.
The Phoenix File Uploads skill is a specialized guide for developers building file-handling features in the Phoenix framework. It enforces critical security standards like path sanitization and UUID-based filename generation while providing boilerplate for LiveView's allow_upload and consume_uploaded_entries workflows. By standardizing the configuration of static paths and error handling, it ensures that user-uploaded content is served correctly and securely in both development and production environments.
Características Principales
01Detailed static path and Plug.Static integration for serving uploaded files
02Support for multi-file slots and external storage providers like AWS S3
0373 GitHub stars
04Automated security protocols for filename sanitization and path traversal prevention
05Standardized LiveView upload configuration for manual and auto-upload patterns
06Template-ready error handling and progress indicator patterns
Casos de Uso
01Configuring production-ready static file serving for user-generated content
02Implementing secure document management systems with server-side validation
03Building user profile and image gallery features with LiveView previews