Download the PHP package anomaly/file-field-type without Composer
On this page you can find all versions of the php package anomaly/file-field-type. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download anomaly/file-field-type
More information about anomaly/file-field-type
Files in anomaly/file-field-type
Download anomaly/file-field-type
More information about anomaly/file-field-type
Files in anomaly/file-field-type
Vendor anomaly
Package file-field-type
Short Description A file upload field type.
License MIT
Homepage http://pyrocms.com/
Package file-field-type
Short Description A file upload field type.
License MIT
Homepage http://pyrocms.com/
Please rate this library. Is it a good library?
Informations about the package file-field-type
File Field Type
anomaly.field_type.file
A file upload field type.
The file field type provides a single file upload input with integration to the Files Module.
Features
- Single file upload
- Integration with Files Module
- BelongsTo relationship with file records
- Folder restrictions for organized uploads
- File type/extension filtering
- Drag and drop upload support
- File browsing from media library
- Preview support for images and documents
- Configurable display modes
Configuration
Basic Configuration
With Folder Restriction
With File Type Restrictions
With Display Mode
Usage Examples
Basic File Upload
With File Upload in Form
Accessing Values
In Twig Templates
In PHP
Setting Values
In Forms
Direct Assignment
Database Structure
The file field type stores the file relationship as:
- INTEGER - Foreign key to
files_files.id
Validation
Required File
File Must Exist
Common Use Cases
User Avatar
PDF Document Upload
Product Featured Image
Report Attachment
Best Practices
- Restrict Folders: Always limit uploads to specific folders for organization
- Validate Extensions: Use extension restrictions for security
- Image Optimization: Use image manipulation for thumbnails and responsive images
- Clean Up: Implement cleanup for unused file records
- Check Existence: Always check if file exists before accessing properties
- Use Relationships: Leverage Eloquent relationships for easy access
- Consider Storage: Monitor disk space for large file uploads
Requirements
- Streams Platform ^1.10
- PyroCMS 3.10+
- Files Module
License
The File Field Type is open-sourced software licensed under the MIT license.
Authors
PyroCMS, Inc. - https://pyrocms.com Ryan Thompson - [email protected]
All versions of file-field-type with dependencies
PHP Build Version
Package Version
Requires
anomaly/streams-platform Version
^1.10
The package anomaly/file-field-type contains the following files
Loading the files please wait ...