Download the PHP package stianscholtz/s3-direct-uploader without Composer
On this page you can find all versions of the php package stianscholtz/s3-direct-uploader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stianscholtz/s3-direct-uploader
More information about stianscholtz/s3-direct-uploader
Files in stianscholtz/s3-direct-uploader
Package s3-direct-uploader
Short Description A headless Laravel file uploader to upload files to s3 directly from the client.
License MIT
Homepage https://github.com/stian-scholtz/s3-direct-uploader
Informations about the package s3-direct-uploader
S3DirectUploader Laravel Package
S3DirectUploader is a headless Laravel package designed to facilitate direct file uploads to Amazon S3 from the client/browser. Please note that users need to build their own File Input, although a complimentary component will be available in the near future. This package then handles the uploaded files, creates corresponding file records in your database, and offers various features such as automatic thumbnail generation, image resizing and scaling, MIME type restrictions, and more.
Features
- Direct file uploads to Amazon S3 from the client/browser.
- Creation of file records in the database.
- Laravel auto-discovery support.
- S3DirectUploader Facade.
- Config file with sensible defaults.
- Route macro for convenience.
- Automatic thumbnail generation (can be disabled).
- Image resizing and scaling options.
- MIME type restrictions.
- File size restriction.
- Prefixing file names.
- Configurable disk via config/filesystems.php.
Installation
You can install the S3DirectUploader package via Composer. Run the following command:
The package will automatically register its service provider and Facade.
Configuration
After installing the package, you can update the config/s3-direct-uploader.php configuration file with your s3 disk, file model, default thumbnail dimensions, and other settings.
Database Migration
S3DirectUploader provides a migration file to create the files table in your database. You do not need to publish this migration, simply run the following and the table will be created if it does not exist:
Usage
Route Macro
You can use the upload route macro for convenience or as an alternative to Route::match(['get', 'post']).
instead of
Controller
Contributing
Contributions are welcome! Please feel free to submit a pull request.
License
The MIT License (MIT). Please see License File for more information.
All versions of s3-direct-uploader with dependencies
aws/aws-sdk-php Version ^3.279
laravel/framework Version ^6.0|^7.0|^8.74|^9.0|^10.0
intervention/image Version ^3.4