Download the PHP package aldozumaran/uploader without Composer
On this page you can find all versions of the php package aldozumaran/uploader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package uploader
Uploader
File storage for easer manipulation with validation.
Images can be uploaded with different resolutions.
THUMB,MEDIUM,XLARGE,ORIGINAL
and add many others.
Setup
Add the package to the require section of your composer.json and run composer update
"aldozumaran/uploader": "dev-master"
Then add the Service Provider to the providers array in config/app.php:
AldoZumaran\Uploader\UploaderServiceProvider::class,
Then add the Facades to the aliases array in config/app.php:
'Uploader' => AldoZumaran\Uploader\Facades\Uploader::class,
And run
php artisan vendor:publish
Config the Uploader
SIZES (ONLY IMAGES)
if width/height are lower than original width/height then resize "images"
VALID
Valid extensions for "files/images", you can consider images as file and will not be resized.
UPLOAD_DIR
Upload Directory, default "uploads", Uploader creates a directory inside public.
FILES_DIR, IMAGES_DIR
File and image directories. Only for images Uploader creates sizes directories,
public/uploads/images/thumb
public/uploads/images/medium
...
public/uploads/images/original - default
RANGE
Every "range" files Uploader creates new subdirectory
public/uploads/images/thumb/[CUSTOM_NAME]/0
public/uploads/images/thumb/[CUSTOM_NAME]/1000
public/uploads/images/thumb/[CUSTOM_NAME]/2000
...
public/uploads/images/medium/[CUSTOM_NAME]/0
public/uploads/images/medium/[CUSTOM_NAME]/1000
public/uploads/images/medium/[CUSTOM_NAME]/2000
...
public/uploads/files/[CUSTOM_NAME]/0
public/uploads/files/[CUSTOM_NAME]/1000
public/uploads/files/[CUSTOM_NAME]/2000
...