Download the PHP package mr-chauhan/quick-file-uploader without Composer
On this page you can find all versions of the php package mr-chauhan/quick-file-uploader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mr-chauhan/quick-file-uploader
More information about mr-chauhan/quick-file-uploader
Files in mr-chauhan/quick-file-uploader
Package quick-file-uploader
Short Description A simple and customizable Laravel package for handling file uploads with validation, error logging, and facade support.
License MIT
Informations about the package quick-file-uploader
π Laravel File Handler Package
A simple and customizable Laravel package for handling file uploads with validation, error logging, and facade support.
β¨ Features
- β Upload and replace files easily
- β Validate file extensions and size dynamically
- β Catch and log upload errors to a dedicated log file
- β
Facade support (
FileUploader
) for clean and readable usage - β Auto-creates directory if it doesn't exist
- β Seamless integration into any Laravel project
π Installation
βοΈ Configuration
Step 1: Publish the configuration file (optional)
This will create a config file at:
config/fileuploader.php
Step 2: (Optional) Define a custom log channel in > config/logging.php
π¦ Usage
Import the facade
Call the method from controller or service
Sample JSON response
On validation or error failure:
π Logging
All file upload activities (success or error) are logged in:
π§ Behind the Scenes
-
Uses Laravel's built-in File and UploadedFile classes.
-
Catches and logs exceptions using Laravelβs logging system.
- Returns clean JSON responses to simplify frontend error handling.
πββοΈ Author
Mr. Chauhan
π License
This package is open-sourced software licensed under the MIT license.