Download the PHP package alareqi/smart-upload without Composer
On this page you can find all versions of the php package alareqi/smart-upload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alareqi/smart-upload
More information about alareqi/smart-upload
Files in alareqi/smart-upload
Package smart-upload
Short Description Laravel package for mobile file uploads with Livewire-style temporary storage.
License MIT
Homepage https://github.com/alareqi/smart-upload
Informations about the package smart-upload
Smart Upload
Laravel package for mobile file uploads with temporary storage - no database required.
This package provides a simple way to handle file uploads from mobile apps. Files are uploaded to a temporary location, then moved to their final destination when the form is submitted.
Installation
No migrations needed - this package uses file-based temporary storage.
How It Works
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/upload-file |
Upload file |
Upload File
Upload a file directly to the endpoint:
Response:
Laravel Controller Usage
Use the HasFileUploads trait in your controller:
Multiple Files
For multiple file uploads, pass an array of UUIDs:
Or convert each with custom filename:
Configuration
Edit config/smart-upload.php:
Cleanup Command
Run cleanup to delete expired temporary files:
Schedule it in app/Console/Kernel.php:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Ayman Alareqi
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of smart-upload with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0
ankitpokhrel/tus-php Version ^2.4